开发者

Custom listview CheckableRelativeLayout is setChecked(false) on repaint

开发者 https://www.devze.com 2023-04-03 11:51 出处:网络
I have made a class CheckableRelativeLayout that extends RelativeLayout and implements Checkable. It is a custom listview that has the ability to check listitems, in my case radio buttons.

I have made a class CheckableRelativeLayout that extends RelativeLayout and implements Checkable. It is a custom listview that has the ability to check listitems, in my case radio buttons.

I override the setChecked-me开发者_如何学JAVAthod and I find that it gets called with a false value every time my view is repainted.

What I want to do is call setChecked(true); on the first item in my list but when the view is repainted my call makes no difference.

0

精彩评论

暂无评论...
验证码 换一张
取 消