class 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();

}