use of androidx.annotation.DrawableRes in project AntennaPod by AntennaPod.
the class ThemeUtils method getDrawableFromAttr.
@DrawableRes
public static int getDrawableFromAttr(Context context, @AttrRes int attr) {
TypedValue typedValue = new TypedValue();
context.getTheme().resolveAttribute(attr, typedValue, true);
return typedValue.resourceId;
}
Aggregations