@Test public void testGetIcon() { final ColorDrawable drawable = new ColorDrawable(Color.BLUE); mIconView.setImageDrawable(drawable); IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); assertSame(drawable, mixin.getIcon()); }
public Drawable getIcon() { final ImageView iconView = getView(); return iconView != null ? iconView.getDrawable() : null; }
IconMixin implements Mixin { public Drawable getIcon() { final ImageView iconView = getView(); return iconView != null ? iconView.getDrawable() : null; } }
IconMixin implements Mixin { public Drawable getIcon() { final ImageView iconView = getView(); return iconView != null ? iconView.getDrawable() : null; } IconMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); }
IconMixin implements Mixin { public Drawable getIcon() { final ImageView iconView = getView(); return iconView != null ? iconView.getDrawable() : null; } IconMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); void setIcon(Drawable icon); void setIcon(@DrawableRes int icon); Drawable getIcon(); void setContentDescription(CharSequence description); CharSequence getContentDescription(); }
IconMixin implements Mixin { public Drawable getIcon() { final ImageView iconView = getView(); return iconView != null ? iconView.getDrawable() : null; } IconMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); void setIcon(Drawable icon); void setIcon(@DrawableRes int icon); Drawable getIcon(); void setContentDescription(CharSequence description); CharSequence getContentDescription();  }