android - TextView.setText disables CheckBox's default animation -


i have gridview checkboxes , every time user clicks checkbox call textview.settext(), somehow calling settext() disables default animation android gives check boxes. why happen?

edit: my listener:

            checkbox.setoncheckedchangelistener(new compoundbutton.oncheckedchangelistener() {             @override             public void oncheckedchanged(compoundbutton buttonview, boolean ischecked) {                 if (ischecked) {                     checkedpositions.add(position + 1);                 } else {                     checkedpositions.remove(new integer(position + 1));                 }                 //removing line brings animation                 textview.settext("some text");             }         }); 


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -