SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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 を設計してみたよ編∼
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Kürzlich hochgeladen (20)

9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

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