|
|
 | |  |  | 单选控件[uiRadioButton]方法小结
- /**
- * uiRadioButton 控件完整示例
- * 🍎交流QQ群711841924群一,苹果内测群,528816639
- */
- // 方法 1: 加载单选控件
- // uiRadioButton findViewById(String arg0)
- // 功能: 加载单选控件
- // 案例: new uiRadioButton().findViewById(控件ID="")
- var radioControl = new uiRadioButton().findViewById("myRadioGroup");
- // 方法 2: 获取选中项
- // String getRadio()
- // 功能: 获取选中项
- // 案例: new uiRadioButton().getRadio()
- var selectedValue = new uiRadioButton().getRadio();
- // 方法 3: 设置高度
- // void setHeight(int arg0)
- // 功能: 设置高度
- // 案例: new uiRadioButton().setHeight(0)
- new uiRadioButton().setHeight(100);
- // 方法 4: 设置选中项
- // String setRadio(String arg0)
- // 功能: 设置选中项
- // 案例: new uiRadioButton().setRadio('')
- var result = new uiRadioButton().setRadio("option1");
复制代码 [color=var(--md-box-h3-text-color,var(--md-box-global-text-color))]方法 1:加载单选控件项目 | 内容 | 功能 | 加载单选控件 | 方法 | uiRadioButton findViewById(String arg0) | 返回值 | uiRadioButton | 参数 | String arg0: 控件 id | 案例 | new uiRadioButton ().findViewById (控件 ID="") | [color=var(--md-box-h3-text-color,var(--md-box-global-text-color))]方法 2:获取选中项项目 | 内容 | 功能 | 获取选中项 | 方法 | String getRadio() | 返回值 | String | 参数 | - | 案例 | new uiRadioButton().getRadio() | [color=var(--md-box-h3-text-color,var(--md-box-global-text-color))]方法 3:设置高度项目 | 内容 | 功能 | 设置高度 | 方法 | void setHeight(int arg0) | 返回值 | void | 参数 | int arg0: 高度 | 案例 | new uiRadioButton().setHeight(0) | [color=var(--md-box-h3-text-color,var(--md-box-global-text-color))]方法 4:设置选中项项目 | 内容 | 功能 | 设置选中项 | 方法 | String setRadio(String arg0) | 返回值 | String | 参数 | String arg0: 选中项标识 | 案例 | new uiRadioButton().setRadio('') |
| |  | |  |
|
untoAIWROK软件无障碍触摸操作示例:点击、左右滑动、上下滑动实例nextnocontent
|