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

RatioView

class RatioView : View, RatioInterface

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

Description:

Constructors

<init>

RatioView(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

getTypefaceSpan

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