in core-android/src/main/java/com/uber/sdk/android/core/UberStyle.java [72:87]
public static UberStyle getStyleFromAttribute(
@NonNull Context context,
@Nullable AttributeSet attributeSet,
@StyleRes int defStyleRes,
@StyleableRes int[] styleableMain,
@StyleableRes int styleable) {
TypedArray typedArray = context.getTheme().obtainStyledAttributes(attributeSet,
styleableMain, 0, defStyleRes);
try {
int style = typedArray.getInt(styleable, UberStyle.DEFAULT.getValue());
return UberStyle.fromInt(style);
} finally {
typedArray.recycle();
}
}