public void select() { isSelected = true; if (!rippleAnimationSupport()) view.setBackgroundColor(colorSelected); else ripple.reveal(0, 0, colorSelected, 0, 0, null); if (sectionColor) { text.setTextColor(iconColor); if (icon != null) { icon.setColorFilter(iconColor); setAlpha(icon, 1f); } } }
public void unSelect() { isSelected = false; if (!rippleAnimationSupport()) { view.setBackgroundColor(colorUnpressed); } else { ripple.hide(0, 0, colorUnpressed, 0, 0, null); } if (sectionColor) { text.setTextColor(Color.BLACK); if (icon != null) { icon.setColorFilter(Color.BLACK); setAlpha(icon, 0.54f); } } }