/** * for backwards compatibility - withIconTinted.. * * @param iconTinted * @return */ @Deprecated public T withTintSelectedIcon(boolean iconTinted) { return withIconTintingEnabled(iconTinted); }
public T withIcon(IIcon iicon) { this.icon = new ImageHolder(iicon); //if we are on api 21 or higher we use the IconicsDrawable for selection too and color it with the correct color //else we use just the one drawable and enable tinting on press if (Build.VERSION.SDK_INT >= 21) { this.selectedIcon = new ImageHolder(iicon); } else { this.withIconTintingEnabled(true); } return (T) this; }
/** * for backwards compatibility - withIconTinted.. * * @param iconTinted * @return */ @Deprecated public T withTintSelectedIcon(boolean iconTinted) { return withIconTintingEnabled(iconTinted); }
public T withIcon(IIcon iicon) { this.icon = new ImageHolder(iicon); //if we are on api 21 or higher we use the IconicsDrawable for selection too and color it with the correct color //else we use just the one drawable and enable tinting on press if (Build.VERSION.SDK_INT >= 21) { this.selectedIcon = new ImageHolder(iicon); } else { this.withIconTintingEnabled(true); } return (T) this; }