@Test public void testSetColor() { ColoredHeaderMixin mixin = new ColoredHeaderMixin(mTemplateLayout, null, 0); mixin.setColor(ColorStateList.valueOf(Color.MAGENTA)); assertEquals(ColorStateList.valueOf(Color.MAGENTA), mHeaderTextView.getTextColors()); }
public void setColor(ColorStateList color) { final TextView titleView = getTextView(); if (titleView != null) { titleView.setTextColor(color); } }
ColoredHeaderMixin extends HeaderMixin { public void setColor(ColorStateList color) { final TextView titleView = getTextView(); if (titleView != null) { titleView.setTextColor(color); } } }
ColoredHeaderMixin extends HeaderMixin { public void setColor(ColorStateList color) { final TextView titleView = getTextView(); if (titleView != null) { titleView.setTextColor(color); } } ColoredHeaderMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); }
ColoredHeaderMixin extends HeaderMixin { public void setColor(ColorStateList color) { final TextView titleView = getTextView(); if (titleView != null) { titleView.setTextColor(color); } } ColoredHeaderMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); void setColor(ColorStateList color); ColorStateList getColor(); }
ColoredHeaderMixin extends HeaderMixin { public void setColor(ColorStateList color) { final TextView titleView = getTextView(); if (titleView != null) { titleView.setTextColor(color); } } ColoredHeaderMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); void setColor(ColorStateList color); ColorStateList getColor();  }