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

More Related Content

PPTX
Android Layout
PDF
Basic Android Layout
PPTX
Android Training (Android UI)
PPT
Android Ui
PPT
Android UI Patterns
PDF
Android ui layout
PDF
Advance Android Layout Walkthrough
PDF
Android Screen Containers & Layouts
Android Layout
Basic Android Layout
Android Training (Android UI)
Android Ui
Android UI Patterns
Android ui layout
Advance Android Layout Walkthrough
Android Screen Containers & Layouts

What's hot (20)

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

Similar to Android android layouts (20)

PPTX
W1_Lec01_Lec02_Layouts.pptx
PPT
Understanding layout managers
PDF
Android Development - ConstraintLayout
PPT
24-BuildingGUIs Complete Materials in Java.ppt
PPT
the Modeling is a way of thinking about the
PDF
Activity diag
PDF
Introduction to Responsive Web Development
PPTX
Applied GIS - 3022.pptx
PDF
MOBILE APPLICATION DEVELOPMENT
PPTX
CSS3 PPT.pptx
PPTX
Android webinar class_2
PPTX
Odoo views
PDF
8layout Managers
PPTX
Apple Watch Human Interface Guidelines
PDF
Android Layout Tutorial | Android UI Design Explained | Edureka
PPT
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
PPT
INTRODUCTION TO ROBOTICS a common view : robotics
PPT
INTRODUCTION TO ROBOTICS a common view : robotics
PPT
Introduction of Robotics and configuration.ppt
PPT
Introduction to Robotics Classification .ppt
W1_Lec01_Lec02_Layouts.pptx
Understanding layout managers
Android Development - ConstraintLayout
24-BuildingGUIs Complete Materials in Java.ppt
the Modeling is a way of thinking about the
Activity diag
Introduction to Responsive Web Development
Applied GIS - 3022.pptx
MOBILE APPLICATION DEVELOPMENT
CSS3 PPT.pptx
Android webinar class_2
Odoo views
8layout Managers
Apple Watch Human Interface Guidelines
Android Layout Tutorial | Android UI Design Explained | Edureka
ie450pp8 jsjdjoscoxlmlxmmxmxlmxclmnlcm lmclvxlc
INTRODUCTION TO ROBOTICS a common view : robotics
INTRODUCTION TO ROBOTICS a common view : robotics
Introduction of Robotics and configuration.ppt
Introduction to Robotics Classification .ppt
Ad

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Pharma ospi slides which help in ospi learning
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
master seminar digital applications in india
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
STATICS OF THE RIGID BODIES Hibbelers.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Sports Quiz easy sports quiz sports quiz
Pharma ospi slides which help in ospi learning
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
master seminar digital applications in india
Supply Chain Operations Speaking Notes -ICLT Program
Pre independence Education in Inndia.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
human mycosis Human fungal infections are called human mycosis..pptx
Complications of Minimal Access Surgery at WLH
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...

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