首先说一下本人的实际情况,是一位大一的物联网专业的学生,因为比赛的原因还没来得及学c语言的我直接跳过了,还没来得及学java的我也直接跳过了,直接搞安卓,所以大佬们凑合着看吧,不喜勿喷。
今天逃课去上了一节大二的安卓开发课,学习了RadioGroup和RadioButtono的使用方法,做了一个用户选择头像框
不多BB了
直接上代码
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RadioGroup
android:id="@+id/rg_userphoto_select"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="#cccccc"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb_systemphoto"
android:layout_wid