Home | History | Annotate | Download | only in util

Lines Matching defs:theme

19 import android.content.res.Resources.Theme;
23 * Provides static functions to more easily resolve attributes of the current theme
27 * Resolves the given attribute id of the theme to a resource id
29 public static int getAttribute(Theme theme, int attrId) {
31 theme.resolveAttribute(attrId, outValue, true);
38 public static int getSelectableItemBackground(Theme theme) {
39 return getAttribute(theme, android.R.attr.selectableItemBackground);
45 public static int getActivatedBackground(Theme theme) {
46 return getAttribute(theme, android.R.attr.activatedBackgroundIndicator);