摘要: xml布局文件如下: MainActivity.java的OnCreate方法中相应的代码如下: genderGroup = (RadioGroup)findViewById(R.id.sex); femaleButton = (RadioButto... 阅读全文
posted @ 2015-07-18 23:10 best.lei 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 复写onCreateOptionsMenu方法,当点击menu菜单时,调用该方法。 @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the... 阅读全文
posted @ 2015-07-18 22:19 best.lei 阅读(288) 评论(0) 推荐(0) 编辑