HomeSort by relevance Sort by last modified time
    Searched refs:colorStateList (Results 1 - 6 of 6) sorted by null

  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
ColorStateListTest.java 22 import android.content.res.ColorStateList;
27 * Tests of {@link android.graphics.ColorStateList}
44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor);
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
54 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor);
  /frameworks/base/core/java/com/android/internal/util/
NotificationColorUtil.java 20 import android.content.res.ColorStateList;
178 ColorStateList colorStateList = span.getTextColor();
179 if (colorStateList != null) {
180 int[] colors = colorStateList.getColors();
197 new ColorStateList(colorStateList.getStates(), colors),
  /frameworks/base/core/java/android/content/res/
ColorStateList.java 43 * {@link android.content.res.ColorStateList}s are created from XML resource files defined in the
66 public class ColorStateList implements Parcelable {
72 private static final SparseArray<WeakReference<ColorStateList>> sCache =
73 new SparseArray<WeakReference<ColorStateList>>();
75 private ColorStateList() { }
78 * Creates a ColorStateList that returns the specified mapping from
81 public ColorStateList(int[][] states, int[] colors) {
97 * Creates or retrieves a ColorStateList that always returns a single color.
99 public static ColorStateList valueOf(int color) {
102 final WeakReference<ColorStateList> ref = sCache.get(color)
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
GradientDrawable.java 19 import android.content.res.ColorStateList;
262 * @param colorStateList The color state list of the stroke
265 * @see #setStroke(int, ColorStateList, float, float)
267 public void setStroke(int width, ColorStateList colorStateList) {
268 setStroke(width, colorStateList, 0, 0);
287 mGradientState.setStroke(width, ColorStateList.valueOf(color), dashWidth, dashGap);
300 * @param colorStateList The color state list of the stroke
305 * @see #setStroke(int, ColorStateList)
308 int width, ColorStateList colorStateList, float dashWidth, float dashGap)
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeTypedArray.java 234 * {@link android.content.res.ColorStateList}, then the default color from
253 ColorStateList colorStateList = ResourceHelper.getColorStateList(
255 if (colorStateList != null) {
256 return colorStateList.getDefaultColor();
263 * Retrieve the ColorStateList for the attribute at <var>index</var>.
265 * a color or complex {@link android.content.res.ColorStateList} description.
269 * @return ColorStateList for the attribute, or null if not defined.
272 public ColorStateList getColorStateList(int index) {
284 // let the framework inflate the ColorStateList from the XML file
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java 28 import android.content.res.ColorStateList;
202 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
204 final int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor);

Completed in 6778 milliseconds