Lines Matching refs:resId
61 * @param resId the resource identifier of the ColorStateList to retrieve
63 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) {
66 return context.getColorStateList(resId);
70 ColorStateList csl = getCachedColorStateList(context, resId);
75 csl = inflateColorStateList(context, resId);
78 addColorStateListToCache(context, resId, csl);
83 return ContextCompat.getColorStateList(context, resId);
93 * @param resId The desired resource identifier, as generated by the aapt
100 public static Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) {
101 return AppCompatDrawableManager.get().getDrawable(context, resId);
108 private static ColorStateList inflateColorStateList(Context context, int resId) {
109 if (isColorInt(context, resId)) {
115 final XmlPullParser xml = r.getXml(resId);
126 @ColorRes int resId) {
130 final ColorStateListCacheEntry entry = entries.get(resId);
137 entries.remove(resId);
145 private static void addColorStateListToCache(@NonNull Context context, @ColorRes int resId,
153 entries.append(resId, new ColorStateListCacheEntry(value,
158 private static boolean isColorInt(@NonNull Context context, @ColorRes int resId) {
162 r.getValue(resId, value, true);