Searched refs:ColorStateList (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/content/res/
H A DColorStateList.java39 * {@link android.content.res.ColorStateList}s are created from XML resource files defined in the
62 public class ColorStateList implements Parcelable { class in inherits:Parcelable
69 private static final SparseArray<WeakReference<ColorStateList>> sCache =
70 new SparseArray<WeakReference<ColorStateList>>();
72 private ColorStateList() { } method in class:ColorStateList
75 * Creates a ColorStateList that returns the specified mapping from
78 public ColorStateList(int[][] states, int[] colors) { method in class:ColorStateList
94 * Creates or retrieves a ColorStateList that always returns a single color.
96 public static ColorStateList valueOf(int color) {
99 WeakReference<ColorStateList> re
[all...]
H A DResources.java88 private static final LongSparseArray<ColorStateList> sPreloadedColorStateLists
89 = new LongSparseArray<ColorStateList>();
101 private final LongSparseArray<WeakReference<ColorStateList> > mColorStateListCache
102 = new LongSparseArray<WeakReference<ColorStateList> >();
730 * {@link android.content.res.ColorStateList}, then the default color from
749 ColorStateList csl = loadColorStateList(mTmpValue, id);
761 * {@link android.content.res.ColorStateList} holding multiple possible colors.
763 * @param id The desired resource identifier of a {@link ColorStateList},
769 * @return Returns a ColorStateList object containing either a single
772 public ColorStateList getColorStateLis
[all...]
H A DTypedArray.java298 * {@link android.content.res.ColorStateList}, then the default color from
319 ColorStateList csl = mResources.loadColorStateList(
331 * Retrieve the ColorStateList for the attribute at <var>index</var>.
333 * a color or complex {@link android.content.res.ColorStateList} description.
337 * @return ColorStateList for the attribute, or null if not defined.
339 public ColorStateList getColorStateList(int index) {
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DColorStateListTest.java22 import android.content.res.ColorStateList;
27 * Tests of {@link android.graphics.ColorStateList}
44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1);
/frameworks/base/core/java/android/text/style/
H A DTextAppearanceSpan.java20 import android.content.res.ColorStateList;
36 private final ColorStateList mTextColor;
37 private final ColorStateList mTextColorLink;
57 ColorStateList textColor;
114 ColorStateList color, ColorStateList linkColor) {
127 mTextColor = ColorStateList.CREATOR.createFromParcel(src);
132 mTextColorLink = ColorStateList.CREATOR.createFromParcel(src);
176 public ColorStateList getTextColor() {
184 public ColorStateList getLinkTextColo
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java23 import android.content.res.ColorStateList;
137 public ColorStateList getColorStateList(int id) throws NotFoundException {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java33 import android.content.res.ColorStateList;
114 public static ColorStateList getColorStateList(ResourceValue resValue, BridgeContext context) {
121 // let the framework inflate the ColorStateList from the XML file, by
128 return ColorStateList.createFromXml(context.getResources(), blockParser);
148 return ColorStateList.valueOf(color);
151 "Failed to convert " + value + " into a ColorStateList", e,
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java306 * {@link android.content.res.ColorStateList}, then the default color from
325 ColorStateList colorStateList = ResourceHelper.getColorStateList(
335 * Retrieve the ColorStateList for the attribute at <var>index</var>.
337 * a color or complex {@link android.content.res.ColorStateList} description.
341 * @return ColorStateList for the attribute, or null if not defined.
344 public ColorStateList getColorStateList(int index) {
364 // let the framework inflate the ColorStateList from the XML file.
373 return ColorStateList.createFromXml(mContext.getResources(), blockParser);
393 return ColorStateList.valueOf(color);
H A DBridgeResources.java192 public ColorStateList getColorStateList(int id) throws NotFoundException {
196 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(),
/frameworks/base/core/tests/coretests/src/android/text/
H A DHtmlTest.java19 import android.content.res.ColorStateList;
99 ColorStateList c =
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java34 import android.content.res.ColorStateList;
287 ColorStateList stateList = ResourceHelper.getColorStateList(
/frameworks/base/core/java/android/widget/
H A DSwitch.java20 import android.content.res.ColorStateList;
104 private ColorStateList mTextColors;
194 ColorStateList colors;
H A DSuggestionsAdapter.java29 import android.content.res.ColorStateList;
76 private ColorStateList mUrlColor;
H A DTextView.java23 import android.content.res.ColorStateList;
268 private ColorStateList mTextColor;
269 private ColorStateList mHintTextColor;
270 private ColorStateList mLinkTextColor;
601 ColorStateList textColor = null;
602 ColorStateList textColorHint = null;
603 ColorStateList textColorLink = null;
1180 setTextColor(textColor != null ? textColor : ColorStateList.valueOf(0xFF000000));
2288 ColorStateList colors;
2488 * @see #setTextColor(ColorStateList)
[all...]
H A DFastScroller.java20 import android.content.res.ColorStateList;
282 ColorStateList textColor = ta.getColorStateList(TEXT_COLOR);
H A DNumberPicker.java21 import android.content.res.ColorStateList;
702 ColorStateList colors = mInputText.getTextColors();
/frameworks/base/core/java/android/text/
H A DHtml.java29 import android.content.res.ColorStateList;
670 ColorStateList colors = res.getColorStateList(colorRes);

Completed in 579 milliseconds