Android Layouts

A generic ViewGroup that defines a structure for the views it contains.

1.Linear Layout
2.Relative Layout
3.Table Layout
4.List View
5.Grid View
6.Web View

     Linear Layout

  • Child Views are arranged in a horizontal or vertical row.

<LinearLayout
   
android:layout_width=”match_parent
   
android:layout_height=”wrap_content
   
android:background=”@color/bg
   
android:clipToPadding=”false”
   
android:gravity=”center”
   
android:orientation=”horizontal>

</LinearLayout>

 

 

  Relative Layout

  • Child Views are positioned relative to each other and parent view.

<RelativeLayout
   android:layout_width=”match_parent”
   android:layout_height=”405dp”> 

</ RelativeLayout >

Table Layout

  • Child Views are arranged in to rows and columns.

List View

  • Displays a scrolling single column list.

Grid View

  • Child views are arranged in to a two dimensional, scrollable grid.

Web View

  • Displays web pages.

2 Comments

  1. Thanks for sharing superb informations. Your web-site is very cool. I’m impressed by the details that you have on this website. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found simply the information I already searched everywhere and simply could not come across. What a great web site.

1 Trackback / Pingback

  1. Google

Leave a Reply

Your email address will not be published.


*