@Override public void onClick(View v) { CompoundButton compoundButton = (CompoundButton) v; if (compoundButton.isChecked()) { compoundButton.startAnimation(tl_preview_show); } else { compoundButton.startAnimation(tl_preview_hide); } }
@Override public void onClick(View v) { CompoundButton compoundButton = (CompoundButton) v; if (compoundButton.isChecked()) { compoundButton.startAnimation(tl_preview_show); } else { compoundButton.startAnimation(tl_preview_hide); } }