RichUtils / pyxis.uzuki.live.richutilskt.widget.ratio / RatioLinearLayout

RatioLinearLayout

class RatioLinearLayout : LinearLayout, RatioInterface

RichUtilsKt Class: RatioLinearLayout Created by pyxis on 18. 5. 16.

Description:

Constructors

<init>

RatioLinearLayout(context: Context, attrs: AttributeSet? = null)

RichUtilsKt Class: RatioLinearLayout Created by pyxis on 18. 5. 16.

Functions

getAxis

fun getAxis(): Axis

getHorizontalRatio

fun getHorizontalRatio(): Float

getVerticalRatio

fun getVerticalRatio(): Float

onMeasure

fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit

setRatio

fun setRatio(axis: Axis, horizontalRatio: Float, verticalRatio: Float): Unit
fun setRatio(horizontalRatio: Float, verticalRatio: Float): Unit

Extension Functions

convertChildrenList

fun ViewGroup.convertChildrenList(): List<View>

Convert ViewGroup's Children to List

getTypefaceSpan

fun View.getTypefaceSpan(fontTypefaceText: String?, fontTypeface: Typeface?): TypefaceSpan?