Lines Matching defs:color

40  * "color" subdirectory directory of an application's resource directory.  The XML file contains
45 * <item android:state_focused="true" android:color="@color/testcolor1"/>
46 * <item android:state_pressed="true" android:state_enabled="false" android:color="@color/testcolor2" />
47 * <item android:state_enabled="false" android:color="@color/testcolor3" />
48 * <item android:color="@color/testcolor5"/>
52 * This defines a set of state spec / color pairs where each state spec specifies a set of
53 * states that a view must either be in or not be in and the color specifies the color associated
59 * href="{@docRoot}guide/topics/resources/color-list-resource.html">Color State
94 * Creates or retrieves a ColorStateList that always returns a single color.
96 public static ColorStateList valueOf(int color) {
99 WeakReference<ColorStateList> ref = sCache.get(color);
106 csl = new ColorStateList(EMPTY, new int[] { color });
107 sCache.put(color, new WeakReference<ColorStateList>(csl));
156 * colors as this one but where each color has the specified alpha value
198 int color = 0xffff0000;
208 if (stateResId == com.android.internal.R.attr.color) {
212 color = attrs.getAttributeIntValue(i, color);
224 color = r.getColor(colorRes);
228 + ": <item> tag requires a 'android:color' attribute.");
232 mDefaultColor = color;
248 colorList[listSize] = color;
264 * Return the color associated with the given set of {@link android.view.View} states.
267 * @param defaultColor the color to return if there's not state spec in this
270 * @return the color associated with that set of states in this {@link ColorStateList}.
284 * Return the default color in this {@link ColorStateList}.
286 * @return the default color in this {@link ColorStateList}.