Mad 12

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Practical No.

12
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">
<TextView
android:id="@+id/textView2"
android:layout_width="284dp"
android:layout_height="wrap_content"
android:layout_x="66dp"
android:layout_y="161dp"
android:text="Select your age:"
android:textSize="35dp" />

<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="254dp"
android:layout_y="522dp">

<RadioButton
android:id="@+id/radioButton8"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_x="140dp"
android:layout_y="351dp"
android:textSize="20dp"
android:text="17" />

<RadioButton
android:id="@+id/radioButton9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_x="141dp"
android:layout_y="440dp"
android:text="18"
android:textSize="20dp" />

<RadioButton
android:id="@+id/radioButton7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="137dp"
android:layout_y="273dp"
android:textSize="20dp"
android:text="19" />
</RadioGroup>

</LinearLayout>

Output:

You might also like