getIndexWithValue

Returns the @StyleableRes index that contains value in the attributes array. If both indices contain values, the first given index takes precedence and is returned.