首页 > RadioButton 获取状态的问题。

RadioButton 获取状态的问题。

我知道有个setOnCheckedChangeListener,但是我需要RadioButton是否选中。。所以希望大家能够告诉我下。。谢谢


  1. OnCheckedListener 中有一个参数是 checkedId,这就是你选中RadioButton的id

  2. RadioButton 有个方法是 isChecked()


OnCheckedListener中checkedId不就已经告诉你RadioButton被选中与否了吗?

【热门文章】
【热门文章】