@Test public void testStyleId() { int style = ThemeUtil.getStyleId(getContextWithTheme(), R.attr.guidanceManeuverPanelSecondaryText); assertNotSame(0, style); }
public static int getStyleId(Context context, int themeAttribute) { final TypedValue value = new TypedValue(); context.getTheme().resolveAttribute(themeAttribute, value, true); return value.resourceId; }
ThemeUtil { public static int getStyleId(Context context, int themeAttribute) { final TypedValue value = new TypedValue(); context.getTheme().resolveAttribute(themeAttribute, value, true); return value.resourceId; } }
ThemeUtil { public static int getStyleId(Context context, int themeAttribute) { final TypedValue value = new TypedValue(); context.getTheme().resolveAttribute(themeAttribute, value, true); return value.resourceId; } private  ThemeUtil(); }
ThemeUtil { public static int getStyleId(Context context, int themeAttribute) { final TypedValue value = new TypedValue(); context.getTheme().resolveAttribute(themeAttribute, value, true); return value.resourceId; } private  ThemeUtil(); static Drawable getDrawable(Context context, final TypedArray typedArray, final int index); static String getString(final TypedArray typedArray, final int index); @ColorInt static int getColor(Context context, int colorAttribute); static int getStyleId(Context context, int themeAttribute); }
ThemeUtil { public static int getStyleId(Context context, int themeAttribute) { final TypedValue value = new TypedValue(); context.getTheme().resolveAttribute(themeAttribute, value, true); return value.resourceId; } private  ThemeUtil(); static Drawable getDrawable(Context context, final TypedArray typedArray, final int index); static String getString(final TypedArray typedArray, final int index); @ColorInt static int getColor(Context context, int colorAttribute); static int getStyleId(Context context, int themeAttribute);  }