GUI로 작성하여도 되나, 코드로 짜는 습관을. . . ( "더보기" 참고 )
접기
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android "
android:orientation = "vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/tv01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/sex"
/>
<RadioGroup
android:id="@+id/rg01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<RadioButton
android:id ="@+id/rb01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text = "@string/man"
/>
<RadioButton
android:id ="@+id/rb02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text = "@string/woman"
/>
</RadioGroup>
<TextView
android:id="@+id/tv02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/mailselect"
/>
<RadioGroup
android:id="@+id/rg02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<RadioButton
android:id ="@+id/rb11"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text = "@string/yes"
/>
<RadioButton
android:id ="@+id/rb12"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text = "@string/no"
/>
</RadioGroup>
<Button
android:id="@+id/btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/initalize"
/>
</LinearLayout>
접기