getFloatResource

open fun getFloatResource(index: Int, defaultValue: Float): Float

Access a given float attribute by Android styleable resource index.

Parameters

index

The Android styleable index for the desired float attribute.

defaultValue

The default value to use when the index is invalid.