<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_height="wrap_content"
android:text="username"
android:id="@+id/first_text"
android:layout_marginTop="20dp" android:layout_marginBottom="20dp" android:layout_width="wrap_content"/>
<EditText android:text="EditText"
android:id="@+id/editText1"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/first_text"
android:layout_width="fill_parent">
</EditText>
<TextView
android:layout_height="wrap_content"
android:text="password"
android:id="@+id/second_text"
android:layout_below="@id/first_text"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp"
android:layout_width="wrap_content"/>
<EditText android:text=""
android:id="@+id/editText2"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/second_text"
android:layout_below="@id/editText1"
android:layout_width="fill_parent">
</EditText>
<RadioButton
android:text="male"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/editText2"
android:id="@+id/radio_button1"
android:layout_toRightOf="@id/second_text"
/>
<RadioButton
android:text="female"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/radio_button1"
android:layout_toRightOf="@id/second_text"
/>
<Button
android:layout_alignParentBottom="true"
android:text="Button"
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
</Button>
<Button
android:layout_alignParentBottom="true"
android:text="Button"
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/button1">
</Button>
</RelativeLayout>
No comments:
Post a Comment