Introduction
- Linear Layout
- Relative Layout
- Table Layout
- Frame Layout
1. Linear Layout


- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical" >
- </LinearLayout>
- for Lu=inearLayout(Horizontal)
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
- </LinearLayout>
So LinearLayout (Horizontal) is the default LinearLayout, but you can change the layout by editing the code:
- android:orientation="vertical"
- “Vertical” replace by Horizontal or delete this line then vertical convert into a horizontal layout
2. Relative Layout
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.example.layouts.RelativeMainActivity" >
- </RelativeLayout>


3. Table Layout



Santhakumar MunuswamyPosted Jun 15, 2015, 2:28 PM
Thanks for sharing
Manoj KulkarniPosted Jun 15, 2015, 6:52 AM
Nice article
Sibeesh VenuPosted Jun 15, 2015, 5:13 AM
Good one.
Neeraj KumarPosted Jun 15, 2015, 4:48 AM
One is Table Row layout but basically it is use with TableLayout .you can use single TableRow Layout Directly
Gopi ChandPosted Jun 15, 2015, 2:44 AM
Good one Neeraj
Neeraj KumarPosted Jun 15, 2015, 1:02 AM
Thank You Sandeep
Sandeep Singh ShekhawatPosted Jun 15, 2015, 12:49 AM
It's nice and helpful. Looking more from your side. Thanks for sharing this one.