0% found this document useful (0 votes)
107 views3 pages

Android Layout for Study Buttons

The document defines an Android layout with three buttons for studying. Each button has the same width and margins but different text for "study 1", "study 2", and "study 3". The buttons are centered horizontally and have rounded corner backgrounds and bold white text.

Uploaded by

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

Android Layout for Study Buttons

The document defines an Android layout with three buttons for studying. Each button has the same width and margins but different text for "study 1", "study 2", and "study 3". The buttons are centered horizontally and have rounded corner backgrounds and bold white text.

Uploaded by

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

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

>

<RelativeLayout xmins:android="[Link]

xmins:app="[Link]

xmins:tools="[Link]

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context=".MainActivity">

<Button

androidid="@+id/study1"

android:layout_width=330dp"

android:layout_height="wrap_content"

android:layout_alignparentStart="true"

android:layout_alignparentEnd="true"

android:layout_marginStart="40dp"

android:layout_marginTop="20dp"

android:layout_marginEnd="40dp"

android:text="study 1"

android:textStyle="bold"

android:textColor=@android:color/white"

android:background"@drawable/rounded_corner"/>

<Button

androidid="@+id/study2"
android:layout_width=330dp"

android:layout_height="wrap_content"

android:layout_alignparentStart="true"

android:layout_alignparentEnd="true"

android:layout_marginStart="40dp"

android:layout_marginTop="20dp"

android:layout_marginEnd="40dp"

android:text="study 2"

android:textStyle="bold"

android:textColor=@android:color/white"

android:background"@drawable/rounded_corner"/>

<Button

androidid="@+id/study3"

android:layout_width=330dp"

android:layout_height="wrap_content"

android:layout_alignparentStart="true"

android:layout_alignparentEnd="true"

android:layout_marginStart="40dp"

android:layout_marginTop="20dp"

android:layout_marginEnd="40dp"

android:text="study 3"

android:textStyle="bold"

android:textColor=@android:color/white"
android:background"@drawable/rounded_corner"/>

</Relativelayout>

---------------------------------------------------------------------------

You might also like