Home  >  Q&A  >  body text

android - RadioButton 获取状态的问题。

高洛峰高洛峰2718 days ago764

reply all(2)I'll reply

  • 迷茫

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

    1. One parameter in OnCheckedListener is checkedId, which is the id of the RadioButton you selected

    2. RadioButton has a method isChecked()

    reply
    0
  • 黄舟

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

    Don’t the checkedId in OnCheckedListener already tell you whether the RadioButton is selected?

    reply
    0
  • Cancelreply