Home
last modified time | relevance | path

Searched refs:textColor (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatTextHelper.java99 ColorStateList textColor = null; in loadFromAttributes() local
116 textColor = a.getColorStateList(R.styleable.TextAppearance_android_textColor); in loadFromAttributes()
141 textColor = a.getColorStateList(R.styleable.TextAppearance_android_textColor); in loadFromAttributes()
156 if (textColor != null) { in loadFromAttributes()
157 mView.setTextColor(textColor); in loadFromAttributes()
235 final ColorStateList textColor in onSetTextAppearance() local
237 if (textColor != null) { in onSetTextAppearance()
238 mView.setTextColor(textColor); in onSetTextAppearance()
DThemeUtils.java41 public static ColorStateList createDisabledStateList(int textColor, int disabledTextColor) { in createDisabledStateList() argument
55 colors[i] = textColor; in createDisabledStateList()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java57 ColorStateList textColor; in TextAppearanceSpan() local
63 textColor = a.getColorStateList(com.android.internal.R.styleable. in TextAppearanceSpan()
102 textColor = a.getColorStateList(colorList); in TextAppearanceSpan()
106 mTextColor = textColor; in TextAppearanceSpan()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java207 ResourceValue textColor = res.findItemInStyle(textStyle, "textColor", in setStyle() local
209 textColor = res.resolveResValue(textColor); in setStyle()
210 if (textColor != null) { in setStyle()
212 textColor, bridgeContext); in setStyle()
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtilsMatchers.java127 public static Matcher withTextColor(final @ColorInt int textColor) {
139 if (ourTextColor != textColor) {
145 int expectedAlpha = Color.alpha(textColor);
146 int expectedRed = Color.red(textColor);
147 int expectedGreen = Color.green(textColor);
148 int expectedBlue = Color.blue(textColor);
DNavigationViewActions.java69 public static ViewAction setItemTextColor(final ColorStateList textColor) {
86 navigationView.setItemTextColor(textColor);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialTextsView.java148 int textColor; in setTheme() local
150 textColor = res.getColor(android.R.color.white); in setTheme()
152 textColor = res.getColor(R.color.numbers_text_color); in setTheme()
154 mPaint.setColor(textColor); in setTheme()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTitleStrip.java73 android.R.attr.textColor,
128 final int textColor = a.getColor(2, 0); in PagerTitleStrip() local
129 mPrevText.setTextColor(textColor); in PagerTitleStrip()
130 mCurrText.setTextColor(textColor); in PagerTitleStrip()
131 mNextText.setTextColor(textColor); in PagerTitleStrip()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java144 void setCollapsedTextColor(ColorStateList textColor) {
145 if (mCollapsedTextColor != textColor) {
146 mCollapsedTextColor = textColor;
151 void setExpandedTextColor(ColorStateList textColor) {
152 if (mExpandedTextColor != textColor) {
153 mExpandedTextColor = textColor;
DBottomNavigationView.java292 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument
293 mMenuView.setItemTextColor(textColor); in setItemTextColor()
DNavigationView.java350 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument
351 mPresenter.setItemTextColor(textColor); in setItemTextColor()
DTabLayout.java719 public void setTabTextColors(@Nullable ColorStateList textColor) { in setTabTextColors() argument
720 if (mTabTextColors != textColor) { in setTabTextColors()
721 mTabTextColors = textColor; in setTabTextColors()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java41 final int textColor; field in AssistVisualizer.TextEntry
56 this.textColor = node.getTextColor(); in TextEntry()
121 + " size=" + te.textSize + " color=#" + Integer.toHexString(te.textColor) in logText()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java222 final ColorStateList textColor = ta.getColorStateList(R.styleable.TextAppearance_textColor); in applyTextAppearance() local
223 if (textColor != null) { in applyTextAppearance()
224 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
230 return textColor; in applyTextAppearance()
253 final ColorStateList textColor = applyTextAppearance(mDayPaint, resId); in setDayTextAppearance() local
254 if (textColor != null) { in setDayTextAppearance()
255 mDayTextColor = textColor; in setDayTextAppearance()
DDayPickerView.java45 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
DRadialTimePickerView.java893 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, in drawTextElements() argument
911 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
DDatePickerCalendarDelegate.java61 com.android.internal.R.attr.textColor};
DTimePickerClockDelegate.java77 private static final int[] ATTRS_TEXT_COLOR = new int[] {R.attr.textColor};
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java230 public void showTransientIndication(String transientIndication, int textColor) { in showTransientIndication() argument
232 mTransientTextColor = textColor; in showTransientIndication()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuPresenter.java252 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument
253 mTextColor = textColor; in setItemTextColor()
/frameworks/support/design/tests/src/android/support/design/widget/
DTextInputLayoutTest.java479 final int textColor = TestUtils.getThemeAttrColor(activity, R.attr.colorAccent); in testThemedColorStateListForErrorTextColor() local
487 .check(matches(withTextColor(textColor))); in testThemedColorStateListForErrorTextColor()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java382 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument
384 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowView.java560 public void setTitleColor(@ColorInt int textColor) {
/frameworks/base/core/java/android/view/
DWindow.java1417 public abstract void setTitleColor(@ColorInt int textColor); in setTitleColor() argument
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java563 public void setTitleColor(int textColor) { in setTitleColor() argument
565 mTitleView.setTextColor(textColor); in setTitleColor()
567 mTitleColor = textColor; in setTitleColor()

12