themeAttrDimen

fun Context.themeAttrDimen(@AttrRes attributeDimen: Int): Float

Get a dimen from the attribute theme

Return

the dimen pixel size, if it exists in the theme context. Otherwise, -1

Parameters

attributeDimen

the attribute dimen, ex R.attr.actionBarSize