layout.xml

<RadioGroup android:id="@+id/sex" style="@style/textInfo" android><RadioButton android:text="男:" android:id="@+id/radionBtn_man" ></RadioButton><RadioButton android:text="女:" android:id="@+id/radionBtn_woman" ></RadioButton></RadioGroup>
RadioButton rb = (RadioButton) findViewById(sexRadioGroup.getCheckedRadioButtonId());mUser.setSex(((RadioButton) findViewById(sexRadioGroup.getCheckedRadioButtonId())).getText().toString());

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. android 导出jar包并使用
  2. Android中intent如何传递自定义数据类型
  3. Android开发_精准排布控件位置
  4. Android 图片Bitmap的剪切
  5. Debug Android and Linux suspend and re
  6. android webview里设置cookie
  7. android 动画分类
  8. Android:Service:AIDL实现进程通信
  9. Android子线程其实也可以刷新UI。。。。
  10. JDK ANT ANDROID Configure