Layout in Android - Types of Android Layouts in App Development
Types of Layouts in Android
- Linear Layout in Android
- Relative Layout in Android
- Table Layout in Android
- Absolute Layout in Android
- Frame Layout in Android
- List View in Android
- Grid Layout in Android
1. Linear Layout in Android
A Linear Layout is a view group that aligns all children in a single direction, vertically or horizontally.
2. Relative Layout - Suppose we want to have three buttons in our application that are of the same type, such as 'Text view,' where the first Text view, and where the second text view, above or below, is left or right. We have to specify the particular position, which is done by relative Layout.
3. Table Layout - Table Layout is a view that group views into rows and columns.
4. Absolute Layout - Absolute Layout enables you to specify the exact location of its children.
5. Frame Layout - The Frame Layout is a placeholder on the screen that you can use to display a single view.
6. List View - List View is a view group that displays a list of scrollable items.
7. Grid Layout - It is a view group that displays a grid of scrollable items.
Source: LearnVern
Comments
Post a Comment