android onCheckedChanged for radiogroup

前端 未结 6 1612
死守一世寂寞
死守一世寂寞 2021-01-07 16:39

I\'m writing an Activity in android where I have two radio buttons under a RadioGroup. One of them is checked by default. But I can\'t trigger the event in

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 17:17

    I guess you are performing click before setting listener to the group, that's why event is not triggered.

提交回复
热议问题