What are the different types of android layouts? – explain their features and activities.
Android Layout Types
We have a different type of layouts available in android to implement user interface for our android applications with different designs based on our requirements.
Following are the commonly used layouts in android
applications to implement required designs.
·
Linear
Layout
·
Relative
Layout
·
Frame
Layout
·
Table
Layout
·
Web View
·
List View
·
Grid View
Android Linear Layout
In android, LinearLayout is a ViewGroup subclass
which is used to render all child View instances one by one either in horizontal direction or
vertical direction based on the orientation property.
Android Relative Layout
In android, RelativeLayout is a ViewGroup which is
used to specify the position of child View instances relative to each other (Child A to the left
of Child B) or relative to the parent (Aligned to the top of parent).
Android Frame Layout
In android, FrameLayout is a ViewGroup subclass
which is used to specify the position of View instances it contains on the
top of each other to display only single View inside the FrameLayout.
Android Table Layout
In android, TableLayout is a ViewGroup subclass
which is used to display the child View elements in rows and columns.
Android Web View
In android, WebView is
a browser which is used to display the web pages as a part of our activity
layout.
Android List View
In android, ListView is a ViewGroup which is
used to display scrollable single column list of items.
Android Grid View
In android, GridView is a ViewGroup which is used to display items in a scrollable grid of columns and rows.
No comments