Heim  >  Fragen und Antworten  >  Hauptteil

android - RadioButton 获取状态的问题。

高洛峰高洛峰2718 Tage vor766

Antworte allen(2)Ich werde antworten

  • 迷茫

    迷茫2017-04-17 16:50:32

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

    2. RadioButton 有个方法是 isChecked()

    Antwort
    0
  • 黄舟

    黄舟2017-04-17 16:50:32

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

    Antwort
    0
  • StornierenAntwort