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
Post a Comment