getStringResource

open fun getStringResource(index: Int, defaultValue: String): String

Access a given string attribute by Android styleable resource index.

Parameters

index

The Android styleable index for the desired string attribute.

defaultValue

The default value to use when the index is invalid.