SlideShare a Scribd company logo
1 of 9
Welcome

Every Day is a new Beginning
Android – Layout Managers
•Android Layout Managers lays out the components on an Activity in a certain order /
fashion
•Layout Managers manages the change in position & state of the components by itself
•There are many Layout managers available in Android. Let us take a look at few of them.
The are as follows:
1.

Absolute Layout

2.

Relative Layout

3.

Linear Layout

4.

Table Layout

5.

Tab Layout

6.

List Layout
Absolute Layout
• Absolute Layout places the components in the position given by the user.
• Absolute Layout lets the user to mention the absolute positioning of each of the
components.
• For each component, the developer needs to provide the x-coordinate (distance
from left wall) and the y-coordinate (distance from the top) of the absolute position of
the component
• This layout is easy to use compared to all other layouts.
• Since we mention the absolute positions, it becomes tedious to change the
positioning of the components later in the development cycle
•A change in position of one of the components will alter the position of lot of other
components in the same Activity
•Absolute Layout is deprecated as of the latest version of Android
Relative Layout
• Relative Layout places the components in the position given by the user.
• Absolute Layout lets the user to mention the relative positioning of each of the
components.
• For each component, the developer needs to provide the x-coordinate of the
distance from the nearest component and the y-coordinate of the distance from the
nearest component of the absolute position of the component

• Relative Layout uses relative positioning of the components. Hence, any change in
one of the component position will be handled by the Layout Manager itself
•A change in position of one of the components will alter the position of other
components in the same Activity. The change will be automatically handled by the
Layout Manager
• Since Absolute Layout is deprecated, the developers are recommended to use
Relative Layout
Linear Layout
• Linear Layout places the components in a linear fashion

• Linear Layout allows the developer to use the ‘android:orientation’ property and
positions the components in horizontal or vertical fashion
• <Linear Layout android:orientation = “horizontal” will position the components in
linear horizontal fashion (in a single line or row)
• <Linear Layout android:orientation = “vertical” will position the components in
vertical fashion (in a single column)
• Linear Layout is used and mixed with Relative Layout in order to achieve most of the
designs in an Activity
Grid Layout

• Grid Layout places the components in multiple rows and columns (as in a matrix)
• Grid Layout lets the user to mention number of rows and columns in the Activity
• The number of rows and columns are fixed for the whole activity
• To achieve a table like structure, you can employ this Layout Manager
• Grid Layout is used to display the content in a MATRIX like structure (example :
GALLERY application )
Table Layout
• Table Layout places the components in the rows and columns in an Activity
• Table Layout lets the user to mention the varying number of columns in each of the
rows.
• Depending on the size and number of components, the Table Layout will arrange the
components in a single row.
• Table Layout differs from the GridLayout in the sense that it allows varying number of
columns in each of the rows
Tab Layout
• Tab Layout places multiple Activities in each of the tabs
• Tab Layout displays multiple activities in different tabs of the same screen space
• Each activity will be displayed in a separate tab so that multiple activities will share
the same space but one Activity will overlap with another
• Only the chosen activity will be displayed at a single point of time
• Tab Layout is deprecated, as of the latest version
• Tab Layout can be used, if the developer wants to display similar Activities in
adjacent screens
• Phone Dialler Application will also display Contact, Call Logs & Favorites section
inside the same screen would be the best example
Thank You

Facebook.com/PerpetroTech

Office Address
New No 30/1
Velachery Road, Little Mount
Saidapet, Chennai-15

Website: www.perpetrotech.com
Mail: info@perpetrotech.com
Ph: +91- 8939707287

More Related Content

What's hot

android layouts
android layoutsandroid layouts
android layoutsDeepa Rani
 
View groups containers
View groups containersView groups containers
View groups containersMani Selvaraj
 
Android Layout 3分クッキング
Android Layout 3分クッキングAndroid Layout 3分クッキング
Android Layout 3分クッキングYuki Anzai
 
Best Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue SolutionsBest Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue SolutionsRapidValue
 
01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgetsSiva Kumar reddy Vasipally
 
How to create ui using droid draw
How to create ui using droid drawHow to create ui using droid draw
How to create ui using droid drawinfo_zybotech
 
Building a simple user interface lesson2
Building a simple user interface lesson2Building a simple user interface lesson2
Building a simple user interface lesson2Kalluri Vinay Reddy
 
Android Lollipop and Material Design
Android Lollipop and Material DesignAndroid Lollipop and Material Design
Android Lollipop and Material DesignJames Montemagno
 
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼ アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼ Yuki Anzai
 

What's hot (20)

Android development session 3 - layout
Android development   session 3 - layoutAndroid development   session 3 - layout
Android development session 3 - layout
 
android layouts
android layoutsandroid layouts
android layouts
 
View groups containers
View groups containersView groups containers
View groups containers
 
Android Layout 3分クッキング
Android Layout 3分クッキングAndroid Layout 3分クッキング
Android Layout 3分クッキング
 
Best Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue SolutionsBest Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue Solutions
 
01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
 
How to create ui using droid draw
How to create ui using droid drawHow to create ui using droid draw
How to create ui using droid draw
 
Android layouts
Android layoutsAndroid layouts
Android layouts
 
01 08 - graphical user interface - layouts
01  08 - graphical user interface - layouts01  08 - graphical user interface - layouts
01 08 - graphical user interface - layouts
 
Ui 5
Ui   5Ui   5
Ui 5
 
Building a simple user interface lesson2
Building a simple user interface lesson2Building a simple user interface lesson2
Building a simple user interface lesson2
 
Android Lollipop and Material Design
Android Lollipop and Material DesignAndroid Lollipop and Material Design
Android Lollipop and Material Design
 
Chapter 5 - Layouts
Chapter 5 - LayoutsChapter 5 - Layouts
Chapter 5 - Layouts
 
Chapter 10 - Views Part 2
Chapter 10 - Views Part 2Chapter 10 - Views Part 2
Chapter 10 - Views Part 2
 
Android UI
Android UIAndroid UI
Android UI
 
iOS UI best practices
iOS UI best practicesiOS UI best practices
iOS UI best practices
 
Android practice of layout in application-chapter6
Android practice of layout in application-chapter6Android practice of layout in application-chapter6
Android practice of layout in application-chapter6
 
iOS Development (Part 2)
iOS Development (Part 2)iOS Development (Part 2)
iOS Development (Part 2)
 
Unit2
Unit2Unit2
Unit2
 
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼ アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
 

Similar to Android android layouts

W1_Lec01_Lec02_Layouts.pptx
W1_Lec01_Lec02_Layouts.pptxW1_Lec01_Lec02_Layouts.pptx
W1_Lec01_Lec02_Layouts.pptxssuserc1e786
 
Understanding layout managers
Understanding layout managersUnderstanding layout managers
Understanding layout managersNuha Noor
 
Android Development - ConstraintLayout
Android Development - ConstraintLayoutAndroid Development - ConstraintLayout
Android Development - ConstraintLayoutManuel Vicente Vivo
 
the Modeling is a way of thinking about the
the Modeling is a way of thinking about thethe Modeling is a way of thinking about the
the Modeling is a way of thinking about thesaman zaker
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web DevelopmentNikhil Baby
 
Applied GIS - 3022.pptx
Applied GIS - 3022.pptxApplied GIS - 3022.pptx
Applied GIS - 3022.pptxtemesgenabebe1
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMuhammad Sajid
 
Android webinar class_2
Android webinar class_2Android webinar class_2
Android webinar class_2Edureka!
 
8layout Managers
8layout Managers8layout Managers
8layout ManagersAdil Jafri
 
Apple Watch Human Interface Guidelines
Apple Watch Human Interface GuidelinesApple Watch Human Interface Guidelines
Apple Watch Human Interface GuidelinesShengWen Chiou
 
Android Layout Tutorial | Android UI Design Explained | Edureka
Android Layout Tutorial | Android UI Design Explained | EdurekaAndroid Layout Tutorial | Android UI Design Explained | Edureka
Android Layout Tutorial | Android UI Design Explained | EdurekaEdureka!
 
Industrial Facility Design
Industrial Facility DesignIndustrial Facility Design
Industrial Facility DesignUmar Yazdani
 
Robot And it configuration
Robot And it configurationRobot And it configuration
Robot And it configurationDaniel raj
 
introduction to robotics and embedded systems
introduction to robotics and embedded systemsintroduction to robotics and embedded systems
introduction to robotics and embedded systemsDirectorCentreforEne
 

Similar to Android android layouts (20)

W1_Lec01_Lec02_Layouts.pptx
W1_Lec01_Lec02_Layouts.pptxW1_Lec01_Lec02_Layouts.pptx
W1_Lec01_Lec02_Layouts.pptx
 
Understanding layout managers
Understanding layout managersUnderstanding layout managers
Understanding layout managers
 
Android Development - ConstraintLayout
Android Development - ConstraintLayoutAndroid Development - ConstraintLayout
Android Development - ConstraintLayout
 
the Modeling is a way of thinking about the
the Modeling is a way of thinking about thethe Modeling is a way of thinking about the
the Modeling is a way of thinking about the
 
Activity diag
Activity diagActivity diag
Activity diag
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
 
Applied GIS - 3022.pptx
Applied GIS - 3022.pptxApplied GIS - 3022.pptx
Applied GIS - 3022.pptx
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
 
CSS3 PPT.pptx
CSS3 PPT.pptxCSS3 PPT.pptx
CSS3 PPT.pptx
 
Android webinar class_2
Android webinar class_2Android webinar class_2
Android webinar class_2
 
Odoo views
Odoo viewsOdoo views
Odoo views
 
8layout Managers
8layout Managers8layout Managers
8layout Managers
 
Apple Watch Human Interface Guidelines
Apple Watch Human Interface GuidelinesApple Watch Human Interface Guidelines
Apple Watch Human Interface Guidelines
 
Android Layout Tutorial | Android UI Design Explained | Edureka
Android Layout Tutorial | Android UI Design Explained | EdurekaAndroid Layout Tutorial | Android UI Design Explained | Edureka
Android Layout Tutorial | Android UI Design Explained | Edureka
 
Decorator pattern
Decorator patternDecorator pattern
Decorator pattern
 
Industrial Facility Design
Industrial Facility DesignIndustrial Facility Design
Industrial Facility Design
 
Robot And it configuration
Robot And it configurationRobot And it configuration
Robot And it configuration
 
Robotics1.ppt
Robotics1.pptRobotics1.ppt
Robotics1.ppt
 
introduction to robotics and embedded systems
introduction to robotics and embedded systemsintroduction to robotics and embedded systems
introduction to robotics and embedded systems
 
ie450pp8.ppt
ie450pp8.pptie450pp8.ppt
ie450pp8.ppt
 

Recently uploaded

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Recently uploaded (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

Android android layouts

  • 1. Welcome Every Day is a new Beginning
  • 2. Android – Layout Managers •Android Layout Managers lays out the components on an Activity in a certain order / fashion •Layout Managers manages the change in position & state of the components by itself •There are many Layout managers available in Android. Let us take a look at few of them. The are as follows: 1. Absolute Layout 2. Relative Layout 3. Linear Layout 4. Table Layout 5. Tab Layout 6. List Layout
  • 3. Absolute Layout • Absolute Layout places the components in the position given by the user. • Absolute Layout lets the user to mention the absolute positioning of each of the components. • For each component, the developer needs to provide the x-coordinate (distance from left wall) and the y-coordinate (distance from the top) of the absolute position of the component • This layout is easy to use compared to all other layouts. • Since we mention the absolute positions, it becomes tedious to change the positioning of the components later in the development cycle •A change in position of one of the components will alter the position of lot of other components in the same Activity •Absolute Layout is deprecated as of the latest version of Android
  • 4. Relative Layout • Relative Layout places the components in the position given by the user. • Absolute Layout lets the user to mention the relative positioning of each of the components. • For each component, the developer needs to provide the x-coordinate of the distance from the nearest component and the y-coordinate of the distance from the nearest component of the absolute position of the component • Relative Layout uses relative positioning of the components. Hence, any change in one of the component position will be handled by the Layout Manager itself •A change in position of one of the components will alter the position of other components in the same Activity. The change will be automatically handled by the Layout Manager • Since Absolute Layout is deprecated, the developers are recommended to use Relative Layout
  • 5. Linear Layout • Linear Layout places the components in a linear fashion • Linear Layout allows the developer to use the ‘android:orientation’ property and positions the components in horizontal or vertical fashion • <Linear Layout android:orientation = “horizontal” will position the components in linear horizontal fashion (in a single line or row) • <Linear Layout android:orientation = “vertical” will position the components in vertical fashion (in a single column) • Linear Layout is used and mixed with Relative Layout in order to achieve most of the designs in an Activity
  • 6. Grid Layout • Grid Layout places the components in multiple rows and columns (as in a matrix) • Grid Layout lets the user to mention number of rows and columns in the Activity • The number of rows and columns are fixed for the whole activity • To achieve a table like structure, you can employ this Layout Manager • Grid Layout is used to display the content in a MATRIX like structure (example : GALLERY application )
  • 7. Table Layout • Table Layout places the components in the rows and columns in an Activity • Table Layout lets the user to mention the varying number of columns in each of the rows. • Depending on the size and number of components, the Table Layout will arrange the components in a single row. • Table Layout differs from the GridLayout in the sense that it allows varying number of columns in each of the rows
  • 8. Tab Layout • Tab Layout places multiple Activities in each of the tabs • Tab Layout displays multiple activities in different tabs of the same screen space • Each activity will be displayed in a separate tab so that multiple activities will share the same space but one Activity will overlap with another • Only the chosen activity will be displayed at a single point of time • Tab Layout is deprecated, as of the latest version • Tab Layout can be used, if the developer wants to display similar Activities in adjacent screens • Phone Dialler Application will also display Contact, Call Logs & Favorites section inside the same screen would be the best example
  • 9. Thank You Facebook.com/PerpetroTech Office Address New No 30/1 Velachery Road, Little Mount Saidapet, Chennai-15 Website: www.perpetrotech.com Mail: info@perpetrotech.com Ph: +91- 8939707287