SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Android development session 3 - layout
Android development   session 3 - layoutAndroid development   session 3 - layout
Android development session 3 - layout
Farabi Technology Middle East
 
android layouts
android layoutsandroid layouts
android layouts
Deepa Rani
 
View groups containers
View groups containersView groups containers
View groups containers
Mani 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 Solutions
RapidValue
 
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
Siva 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 draw
info_zybotech
 
Android layouts
Android layoutsAndroid layouts
Android layouts
Jeffrey Quevedo
 
01 08 - graphical user interface - layouts
01  08 - graphical user interface - layouts01  08 - graphical user interface - layouts
01 08 - graphical user interface - layouts
Siva Kumar reddy Vasipally
 
Ui 5
Ui   5Ui   5
Ui 5
Michael Shrove
 
Building a simple user interface lesson2
Building a simple user interface lesson2Building a simple user interface lesson2
Building a simple user interface lesson2
Kalluri Vinay Reddy
 
Android Lollipop and Material Design
Android Lollipop and Material DesignAndroid Lollipop and Material Design
Android Lollipop and Material Design
James Montemagno
 
Chapter 5 - Layouts
Chapter 5 - LayoutsChapter 5 - Layouts
Chapter 5 - Layouts
Sittiphol Phanvilai
 
Chapter 10 - Views Part 2
Chapter 10 - Views Part 2Chapter 10 - Views Part 2
Chapter 10 - Views Part 2
Sittiphol Phanvilai
 
Android UI
Android UIAndroid UI
Android UI
nationalmobileapps
 
iOS UI best practices
iOS UI best practicesiOS UI best practices
iOS UI best practices
DianaKhersonskaia
 
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
Dr. Ramkumar Lakshminarayanan
 
iOS Development (Part 2)
iOS Development (Part 2)iOS Development (Part 2)
iOS Development (Part 2)
Asim Rais Siddiqui
 
Unit2
Unit2Unit2
Unit2
DevaKumari Vijay
 
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼ アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
Yuki Anzai
 
android layouts
android layoutsandroid layouts
android layouts
Deepa Rani
 
View groups containers
View groups containersView groups containers
View groups containers
Mani 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 Solutions
RapidValue
 
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
Siva 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 draw
info_zybotech
 
Building a simple user interface lesson2
Building a simple user interface lesson2Building a simple user interface lesson2
Building a simple user interface lesson2
Kalluri Vinay Reddy
 
Android Lollipop and Material Design
Android Lollipop and Material DesignAndroid Lollipop and Material Design
Android Lollipop and Material Design
James Montemagno
 
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼ アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
アプリのUIを改善するための7ステップ ∼Bump Recorder の UI を設計してみたよ編∼
Yuki Anzai
 

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
ssuserc1e786
 
Understanding layout managers
Understanding layout managersUnderstanding layout managers
Understanding layout managers
Nuha Noor
 
Android Development - ConstraintLayout
Android Development - ConstraintLayoutAndroid Development - ConstraintLayout
Android Development - ConstraintLayout
Manuel 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 the
saman zaker
 
Activity diag
Activity diagActivity diag
Activity diag
Preeti Mishra
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
Nikhil Baby
 
Applied GIS - 3022.pptx
Applied GIS - 3022.pptxApplied GIS - 3022.pptx
Applied GIS - 3022.pptx
temesgenabebe1
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
Muhammad Sajid
 
CSS3 PPT.pptx
CSS3 PPT.pptxCSS3 PPT.pptx
CSS3 PPT.pptx
AchieversIT
 
Android webinar class_2
Android webinar class_2Android webinar class_2
Android webinar class_2
Edureka!
 
Odoo views
Odoo viewsOdoo views
Odoo views
Celine George
 
8layout Managers
8layout Managers8layout Managers
8layout Managers
Adil Jafri
 
Apple Watch Human Interface Guidelines
Apple Watch Human Interface GuidelinesApple Watch Human Interface Guidelines
Apple Watch Human Interface Guidelines
ShengWen 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 | Edureka
Edureka!
 
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlcie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
sailavanyar1
 
Introduction of Robotics and configuration.ppt
Introduction of Robotics and configuration.pptIntroduction of Robotics and configuration.ppt
Introduction of Robotics and configuration.ppt
CCEnotes
 
INTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : roboticsINTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : robotics
Nagarjunakonduru2
 
INTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : roboticsINTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : robotics
Nagarjunakonduru2
 
Decorator pattern
Decorator patternDecorator pattern
Decorator pattern
Mohammad Reda Katby
 
Industrial Facility Design
Industrial Facility DesignIndustrial Facility Design
Industrial Facility Design
Umar Yazdani
 
W1_Lec01_Lec02_Layouts.pptx
W1_Lec01_Lec02_Layouts.pptxW1_Lec01_Lec02_Layouts.pptx
W1_Lec01_Lec02_Layouts.pptx
ssuserc1e786
 
Understanding layout managers
Understanding layout managersUnderstanding layout managers
Understanding layout managers
Nuha Noor
 
Android Development - ConstraintLayout
Android Development - ConstraintLayoutAndroid Development - ConstraintLayout
Android Development - ConstraintLayout
Manuel 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 the
saman zaker
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
Nikhil Baby
 
Applied GIS - 3022.pptx
Applied GIS - 3022.pptxApplied GIS - 3022.pptx
Applied GIS - 3022.pptx
temesgenabebe1
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
Muhammad Sajid
 
Android webinar class_2
Android webinar class_2Android webinar class_2
Android webinar class_2
Edureka!
 
8layout Managers
8layout Managers8layout Managers
8layout Managers
Adil Jafri
 
Apple Watch Human Interface Guidelines
Apple Watch Human Interface GuidelinesApple Watch Human Interface Guidelines
Apple Watch Human Interface Guidelines
ShengWen 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 | Edureka
Edureka!
 
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlcie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
sailavanyar1
 
Introduction of Robotics and configuration.ppt
Introduction of Robotics and configuration.pptIntroduction of Robotics and configuration.ppt
Introduction of Robotics and configuration.ppt
CCEnotes
 
INTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : roboticsINTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : robotics
Nagarjunakonduru2
 
INTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : roboticsINTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : robotics
Nagarjunakonduru2
 
Industrial Facility Design
Industrial Facility DesignIndustrial Facility Design
Industrial Facility Design
Umar Yazdani
 
Ad

Recently uploaded (20)

To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Ad

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: [email protected] Ph: +91- 8939707287