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

php - Admin SDK -- get information about the group -

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

Python Error - TypeError: input expected at most 1 arguments, got 3 -