Home
last modified time | relevance | path

Searched refs:ColorStateList (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/base/core/java/android/content/res/
DColorStateList.java72 public class ColorStateList implements Parcelable { class
79 private static final SparseArray<WeakReference<ColorStateList>> sCache = new SparseArray<>();
92 private ColorStateList() { in ColorStateList() method in ColorStateList
100 public ColorStateList(int[][] states, @ColorInt int[] colors) { in ColorStateList() method in ColorStateList
111 public static ColorStateList valueOf(@ColorInt int color) { in valueOf()
115 final ColorStateList cached = sCache.valueAt(index).get(); in valueOf()
132 final ColorStateList csl = new ColorStateList(EMPTY, new int[] { color }); in valueOf()
147 private ColorStateList(ColorStateList orig) { in ColorStateList() method in ColorStateList
171 public static ColorStateList createFromXml(Resources r, XmlPullParser parser) in createFromXml()
187 public static ColorStateList createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml()
[all …]
/frameworks/support/v4/java/android/support/v4/widget/
DCompoundButtonCompat.java20 import android.content.res.ColorStateList;
50 void setButtonTintList(CompoundButton button, ColorStateList tint); in setButtonTintList()
51 ColorStateList getButtonTintList(CompoundButton button); in getButtonTintList()
59 public void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList()
64 public ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList()
86 public void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList()
91 public ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList()
127 …public static void setButtonTintList(@NonNull CompoundButton button, @Nullable ColorStateList tint… in setButtonTintList()
137 public static ColorStateList getButtonTintList(@NonNull CompoundButton button) { in getButtonTintList()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java20 import android.content.res.ColorStateList;
36 private final ColorStateList mTextColor;
37 private final ColorStateList mTextColorLink;
57 ColorStateList textColor; in TextAppearanceSpan()
114 ColorStateList color, ColorStateList linkColor) { in TextAppearanceSpan()
127 mTextColor = ColorStateList.CREATOR.createFromParcel(src); in TextAppearanceSpan()
132 mTextColorLink = ColorStateList.CREATOR.createFromParcel(src); in TextAppearanceSpan()
186 public ColorStateList getTextColor() { in getTextColor()
194 public ColorStateList getLinkTextColor() { in getLinkTextColor()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintManager.java20 import android.content.res.ColorStateList;
135 private SparseArray<ColorStateList> mTintLists;
136 private ColorStateList mDefaultColorStateList;
182 final ColorStateList tintList = getTintList(resId);
281 public final ColorStateList getTintList(int resId) {
286 ColorStateList tint = mTintLists != null ? mTintLists.get(resId) : null;
324 private ColorStateList getDefaultColorStateList(Context context) {
369 mDefaultColorStateList = new ColorStateList(states, colors);
374 private ColorStateList createCheckableButtonColorStateList(Context context) {
393 return new ColorStateList(states, colors);
[all …]
DThemeUtils.java20 import android.content.res.ColorStateList;
45 public static ColorStateList createDisabledStateList(int textColor, int disabledTextColor) { in createDisabledStateList()
62 return new ColorStateList(states, colors); in createDisabledStateList()
75 public static ColorStateList getThemeAttrColorStateList(Context context, int attr) { in getThemeAttrColorStateList()
86 final ColorStateList csl = getThemeAttrColorStateList(context, attr); in getDisabledThemeAttrColor()
DTintInfo.java19 import android.content.res.ColorStateList;
26 public ColorStateList mTintList;
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DConverters.java19 import android.content.res.ColorStateList;
29 public static ColorStateList convertColorToColorStateList(int color) { in convertColorToColorStateList()
30 return ColorStateList.valueOf(color); in convertColorToColorStateList()
/frameworks/support/design/lollipop/android/support/design/widget/
DCircularBorderDrawableLollipop.java20 import android.content.res.ColorStateList;
32 private ColorStateList mTint;
54 public void setTintList(ColorStateList tint) { in setTintList()
77 private PorterDuffColorFilter updateTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) { in updateTintFilter()
DFloatingActionButtonLollipop.java23 import android.content.res.ColorStateList;
54 void setBackgroundDrawable(Drawable originalBackground, ColorStateList backgroundTint, in setBackgroundDrawable()
72 mRippleDrawable = new RippleDrawable(ColorStateList.valueOf(rippleColor), in setBackgroundDrawable()
80 void setBackgroundTintList(ColorStateList tint) { in setBackgroundTintList()
94 mRippleDrawable.setColor(ColorStateList.valueOf(rippleColor)); in setRippleColor()
/frameworks/support/v4/donut/android/support/v4/view/
DTintableBackgroundView.java19 import android.content.res.ColorStateList;
40 void setSupportBackgroundTintList(@Nullable ColorStateList tint); in setSupportBackgroundTintList()
48 ColorStateList getSupportBackgroundTintList(); in getSupportBackgroundTintList()
DViewCompatBase.java19 import android.content.res.ColorStateList;
34 static ColorStateList getBackgroundTintList(View view) { in getBackgroundTintList()
40 static void setBackgroundTintList(View view, ColorStateList tintList) { in setBackgroundTintList()
/frameworks/support/v4/donut/android/support/v4/widget/
DTintableCompoundButton.java19 import android.content.res.ColorStateList;
40 public void setSupportButtonTintList(@Nullable ColorStateList tint); in setSupportButtonTintList()
48 public ColorStateList getSupportButtonTintList(); in getSupportButtonTintList()
DCompoundButtonCompatDonut.java19 import android.content.res.ColorStateList;
34 static void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList()
40 static ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList()
/frameworks/support/v4/api21/android/support/v4/widget/
DCompoundButtonCompatLollipop.java19 import android.content.res.ColorStateList;
25 static void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList()
29 static ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList()
/frameworks/support/design/src/android/support/design/widget/
DNavigationView.java20 import android.content.res.ColorStateList;
117 final ColorStateList itemIconTint; in NavigationView()
131 ColorStateList itemTextColor = null; in NavigationView()
275 public ColorStateList getItemIconTintList() { in getItemIconTintList()
286 public void setItemIconTintList(@Nullable ColorStateList tint) { in setItemIconTintList()
298 public ColorStateList getItemTextColor() { in getItemTextColor()
309 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor()
373 private ColorStateList createDefaultColorStateList(int baseColorThemeAttr) { in createDefaultColorStateList()
378 ColorStateList baseColor = getResources().getColorStateList(value.resourceId); in createDefaultColorStateList()
384 return new ColorStateList(new int[][]{ in createDefaultColorStateList()
/frameworks/support/design/base/android/support/design/widget/
DFloatingActionButtonImpl.java19 import android.content.res.ColorStateList;
44 abstract void setBackgroundDrawable(Drawable originalBackground, ColorStateList backgroundTint, in setBackgroundDrawable()
47 abstract void setBackgroundTintList(ColorStateList tint); in setBackgroundTintList()
65 Drawable createBorderDrawable(int borderWidth, ColorStateList backgroundTint) { in createBorderDrawable()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatBackgroundHelper.java19 import android.content.res.ColorStateList;
49 ColorStateList tint = mTintManager.getTintList( in loadFromAttributes()
80 void setSupportBackgroundTintList(ColorStateList tint) { in setSupportBackgroundTintList()
90 ColorStateList getSupportBackgroundTintList() { in getSupportBackgroundTintList()
118 void setInternalBackgroundTint(ColorStateList tint) { in setInternalBackgroundTint()
DAppCompatCompoundButtonHelper.java19 import android.content.res.ColorStateList;
38 private ColorStateList mButtonTintList = null;
83 void setSupportButtonTintList(ColorStateList tint) { in setSupportButtonTintList()
90 ColorStateList getSupportButtonTintList() { in getSupportButtonTintList()
DAppCompatRadioButton.java20 import android.content.res.ColorStateList;
93 public void setSupportButtonTintList(@Nullable ColorStateList tint) { in setSupportButtonTintList()
105 public ColorStateList getSupportButtonTintList() { in getSupportButtonTintList()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java22 import android.content.res.ColorStateList;
44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList()
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DDrawableWrapper.java19 import android.content.res.ColorStateList;
33 void setTintList(ColorStateList tint); in setTintList()
DDrawableWrapperDonut.java19 import android.content.res.ColorStateList;
37 private ColorStateList mTintList;
192 setTintList(ColorStateList.valueOf(tint)); in setTint()
196 public void setTintList(ColorStateList tint) { in setTintList()
/frameworks/support/v4/api23/android/support/v4/content/
DContextCompatApi23.java20 import android.content.res.ColorStateList;
26 public static ColorStateList getColorStateList(Context context, int id) { in getColorStateList()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java26 import android.content.res.ColorStateList;
57 private ColorStateList mCalendarTextColor;
58 private ColorStateList mDaySelectorColor;
59 private ColorStateList mDayHighlightColor;
149 void setCalendarTextColor(ColorStateList calendarTextColor) { in setCalendarTextColor()
153 void setDaySelectorColor(ColorStateList selectorColor) { in setDaySelectorColor()
/frameworks/support/design/eclair-mr1/android/support/design/widget/
DFloatingActionButtonEclairMr1.java19 import android.content.res.ColorStateList;
67 void setBackgroundDrawable(Drawable originalBackground, ColorStateList backgroundTint, in setBackgroundDrawable()
114 void setBackgroundTintList(ColorStateList tint) { in setBackgroundTintList()
249 private static ColorStateList createColorStateList(int selectedColor) { in createColorStateList()
267 return new ColorStateList(states, colors); in createColorStateList()

123456