Remove/add Shadow Effect Dynamically
When my button disabled i need remove text shadow effect and when button enable I need add this effect again. selector_btn.xml Copy
write down this method to check enable disable;
public void getTextStyle() {
if(textstyle.isEnabled()){
textstyle.setTextAppearance(this, R.style.TextShadow_enable);
}
else{
textstyle.setTextAppearance(this, R.style.TextShadow_disable);
}
}
Post a Comment for "Remove/add Shadow Effect Dynamically"