Before moving towards "Layouts in android" , let us discuss "what are layouts ?". In our daily life we surf internet and head on to some website. Website contains some texts, images, buttons, icons etc. We see that in all websites they are aligned or arranged in a fashion so that they follow the design rules and also look better to a user. Layouts are basically the arrangement of various "views" or "components" on the screen or display so that everything can be observed and accessed easily.
In android , we create apps which contains multiple Activities(screens). Each Activity( screen ) acts as a user interface and therefore "views" are aligned on Activity. Now the question is how we can place various views ( text, button, fields, icons ) on the app screen so that everything looks great and we follow the design rules.
Android provides us various types of Layouts which we can use to align our view items accordingly.
Let us see what are the names of those layouts and we will discuss them one by one. Following are the layouts that android provides :
1. Linear Layout
2. Relative Layout
3. Constraint Layout
4. Coordinator Layout
5. Table Layout
Let us discuss them one by one in our next post.
In android , we create apps which contains multiple Activities(screens). Each Activity( screen ) acts as a user interface and therefore "views" are aligned on Activity. Now the question is how we can place various views ( text, button, fields, icons ) on the app screen so that everything looks great and we follow the design rules.
Android provides us various types of Layouts which we can use to align our view items accordingly.
Let us see what are the names of those layouts and we will discuss them one by one. Following are the layouts that android provides :
1. Linear Layout
2. Relative Layout
3. Constraint Layout
4. Coordinator Layout
5. Table Layout
Let us discuss them one by one in our next post.
No comments:
Post a Comment