0% found this document useful (0 votes)
25 views2 pages

Linear Layout

The document is an XML layout for an Android application featuring a vertical LinearLayout. It includes TextViews for 'Name' and 'Password', EditTexts for user input, an ImageButton, ToggleButton, CheckBoxes for programming languages, and a RadioGroup with RadioButtons. The layout is styled with specific colors, sizes, and margins to enhance user interface aesthetics.

Uploaded by

sarveshparab093
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Linear Layout

The document is an XML layout for an Android application featuring a vertical LinearLayout. It includes TextViews for 'Name' and 'Password', EditTexts for user input, an ImageButton, ToggleButton, CheckBoxes for programming languages, and a RadioGroup with RadioButtons. The layout is styled with specific colors, sizes, and margins to enhance user interface aesthetics.

Uploaded by

sarveshparab093
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<?xml version="1.0" encoding="utf-8"?

>
<LinearLayout xmlns:android="[Link]
xmlns:app="[Link]
xmlns:tools="[Link]
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#D9D28E"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name:"
android:textStyle="bold|italic"
android:textSize="30sp"
android:textColor="#D11E83"
android:layout_marginTop="30dp"
android:padding="20dp"/>

<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="Enter your name"
android:layout_marginTop="10dp"
android:layout_marginRight="50dp"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Password:"
android:textStyle="bold|italic"
android:textSize="30sp"
android:textColor="#D11E83"
android:layout_marginTop="30dp"
android:padding="20dp"/>

<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="Enter your pwd"
android:layout_marginTop="10dp"
android:layout_marginRight="50dp"/>

<ImageButton
android:layout_width="200dp"
android:layout_height="87dp"
android:layout_marginTop="10dp"
android:layout_marginR="20dp"
android:background="#3F51B5"
android:scaleType="center"
android:src="@drawable/img_7" />

<ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="dark"
android:checked="true"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="c"
android:textSize="20dp"
android:textColor="#0666B4"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="c++"
android:textSize="20dp"
android:textColor="#0666B4"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Java"
android:textSize="20dp"
android:textColor="#0666B4"/>

<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"/>
</RadioGroup>

</LinearLayout>

You might also like