getIntegerResource

open fun getIntegerResource(index: Int, defaultValue: Int): Int

Access a given int attribute by Android styleable resource index.

Parameters

index

The Android styleable index for the desired int attribute.

defaultValue

The default value to use when the index is invalid.