Lines Matching refs:icon
31 * A {@link Mixin} for setting an icon on the template layout.
49 final @DrawableRes int icon = a.getResourceId(R.styleable.SuwIconMixin_android_icon, 0);
50 if (icon != 0) {
51 setIcon(icon);
58 * Sets the icon on this layout. The icon can also be set in XML using {@code android:icon}.
60 * @param icon A drawable icon.
62 public void setIcon(Drawable icon) {
65 iconView.setImageDrawable(icon);
66 iconView.setVisibility(icon != null ? View.VISIBLE : View.GONE);
71 * Sets the icon on this layout. The icon can also be set in XML using {@code android:icon}.
73 * @param icon A drawable icon resource.
75 public void setIcon(@DrawableRes int icon) {
80 iconView.setImageResource(icon);
81 iconView.setVisibility(icon != 0 ? View.VISIBLE : View.GONE);
86 * @return The icon previously set in {@link #setIcon(Drawable)} or {@code android:icon}
94 * Sets the content description of the icon view
104 * @return The content description of the icon view
112 * @return The ImageView responsible for displaying the icon.