Android Studio Tutorials-Working With Linear Layout On Android Studio For Beginners

ANDROID STUDIO TUTORIALS-WORKING WITH LINEAR LAYOUT ON ANDROID STUDIO FOR BEGINNERS

Hello And Welcome Today I will Tell You Working With Linear Layouts In Android Studio.

Step 1 

First Of All Open An Android Studio And Create New Project.

Step 2

After Creating New Project Then go to the App and then go to the Res and then Click On Layout.

Step 3

After Click On Layout You Can see the Activity main.xml  click on it.

Step 4

Now Your Layout is Open.

 

 

 

 

 

 

 

 

 

 

Step 5

Copy this code and paste it to the inside of Linear Layout.


<TextView
android:layout_width="wrap_content"
android:text="Hello World"
android:layout_height="wrap_content"></TextView>


<Button
android:layout_width="wrap_content"
android:text="Hello World"
android:layout_height="wrap_content"></Button>



<TextView
android:layout_width="wrap_content"
android:text="Hello World"
android:layout_height="wrap_content"></TextView>

 

Step 6

See this

 

 

 

 

 

 

 

 

 

 

Step 7

The Output Result Is.

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *