SlideShare a Scribd company logo
Designing for Android
Anjan Shrestha
UX Lead, YoungInnovations
Android Apps Training Day 3
A small introduction to android UI
A small introduction to android UI
Home Screen
A small introduction to android UI
All Apps Screen
A small introduction to android UI
Recents Screen
System Bars
Status Bar
Navigation Bar
One terminology you must know …
SCREEN DENSITY
The number of pixels in a physical area of a screen.
Measured as Dots Per Inch
DPI
ldpi mdpi hdpi xhdpi xxhdpi tvdpi
SCREEN DENSITY
120 160 240 320 480 213
approx.
So?
Well, you must deliver images for
each screen density.
48px in mdpi = 48px in xhdpi
Because visually,
DP
Density Independent Pixel
to the rescue
Defining layout in density independent way …
DP
HUH?
1dp=1px
On an mdpi (160dpi) screen,
That is probably why mdpi is also called the baseline screen in Android.
px*(dpi/160)
For other screen densities,
48*(320/160)
So a 48px icon in mdpi should be …
px*(dpi/160)
96px in xhdpi (320)
ldpi mdpi hdpi xhdpi tvdpi
48px36px 72px 96px 63px
1x0.75x 1.5x 2x 4/3x
Similarly, other icons as well
If you think it’s a hassle to
calculate dp for all screen
densities, use
Dp
Calculator
h"ps://play.google.com/store/apps/details?
id=com.vivek.dpcalculator&hl=en	
  
Naming these icons
Setting up workspace
A little bit on launcher icon
THIS IS
YOU!Launcher icon appears on the Home or All Apps screen of android.
ldpi mdpi hdpi xhdpi tvdpi
48px36px 72px 96px 63px
Launcher Icons for different screen densities
Launcher Icons for display on Google Play
512x512px
Designing the UI
Step 1
Write down the
objective(s) of your
application.
Step 2
Draw wireframes (start
with sketching on
paper), get feedback,
refine.
Step 3
Pick your favorite design
tool.
Mine is Adobe Fireworks
and Sketch (mac only)
Step 4
Start designing based
on your wireframe.
Follow the design patterns
No. of actions you can put in action bar
Navigation with Action bar
Utilize the main action bar for
displaying the current view title and
an up caret for navigating up a
hierarchy
Use tabs for navigating
through different views.
Use the bottom bar for
displaying actions
Navigation with Navigation Drawer
Study Design
Patterns for
more
http://developer.android.com/design/
patterns/index.html
See Building
blocks section
for ready-to-
use elements
http://developer.android.com/design/
building-blocks/index.html
For stencils, gui
elements
http://developer.android.com/design/
downloads/index.html
Thank you!
Anjan Shrestha
UX Lead, YoungInnovations
Designing for Android -
Development
Vivek Bhusal
Android Apps Training Day 3
“How do I configure for
different screens then ?”
Layout Qualifier
  These are configuration qualifiers.
  Allow developers to control how the system
selects the alternative resources based on
characteristics of the current device screen.
  Each screen characteristic has a
separate qualifier.
Screen  Characteris-c     Qualifier   Descrip-on  
Size	
   small	
   Resources	
  for	
  small	
  screen	
  sizes.	
  
normal	
   Resources	
  for	
  normal	
  size	
  screens.	
  (Default)	
  
large	
   Resources	
  for	
  large	
  size	
  screens.	
  
xlarge	
   Resources	
  for	
  extra  large	
  size	
  screens.	
  
Density	
  	
   ldpi	
   Resources	
  for	
  ldpi	
  screens.	
  
mdpi	
   Resources	
  for	
  mdpi	
  screens.	
  
hdpi	
   Resources	
  for	
  hdpi	
  screens.	
  
xhdpi	
  	
   Resources	
  for	
  xhdpi	
  screens.	
  
tvdpi	
   Resources	
  for	
  screens	
  somewhere	
  between	
  
mdpi	
  and	
  hdpi.	
  
OrientaGon	
   land	
   Resources	
  for	
  landscape	
  orientaGon	
  
port	
   Resources	
  for	
  potrait	
  orientaGon	
  
Qualifier types
Screen  Characteris-c     Qualifier   Descrip-on  
Size	
   small	
   Resources	
  for	
  small	
  screen	
  sizes.	
  
normal	
   Resources	
  for	
  normal	
  size	
  screens.	
  (Default)	
  
large	
   Resources	
  for	
  large	
  size	
  screens.	
  
xlarge	
   Resources	
  for	
  extra  large	
  size	
  screens.	
  
Density	
  	
   ldpi	
   Resources	
  for	
  ldpi	
  screens.	
  
mdpi	
   Resources	
  for	
  mdpi	
  screens.	
  
hdpi	
   Resources	
  for	
  hdpi	
  screens.	
  
xhdpi	
  	
   Resources	
  for	
  xhdpi	
  screens.	
  
tvdpi	
   Resources	
  for	
  screens	
  somewhere	
  between	
  
mdpi	
  and	
  hdpi.	
  
OrientaGon	
   land	
   Resources	
  for	
  landscape	
  orientaGon	
  
port	
   Resources	
  for	
  potrait	
  orientaGon	
  
Qualifier types
Implementing qualifiers
res/layout/my_layout.xml // layout for normal
screen size ("default")
res/layout-small/my_layout.xml // layout for small
screen size
res/layout-large/my_layout.xml // layout for large
screen size
res/layout-xlarge/my_layout.xml // layout for extra
large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra
large in landscape orientation
res/drawable-mdpi/my_icon.png // bitmap for medium
density
res/drawable-hdpi/my_icon.png // bitmap for high
density
res/drawable-xhdpi/my_icon.png // bitmap for extra
high density use	
  mdpi,	
  etc	
  for	
  bitmaps	
  
and	
  small,	
  etc	
  for	
  layouts	
  
Good
implementation
practice
But how's got time for that ??
Also in the manifest file:
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
Hack
  When declaring Views use the dimen to
give away dimensions.
  e.g.
<Button
android:layout_width = “@dimen/button_width”
…/>
How	
  do	
  I	
  refer	
  ?	
  
How	
  do	
  I	
  do	
  this	
  ?	
  
Where	
  is	
  this	
  ?	
  
Inside dimens:
<resources>
<dimen name="abc">16dp</dimen>
<dimen name="xyz">16dp</dimen>
</resources>
<!-- do not forget to declare
resources, R error is bound
to occur -->
Create different values
folder with different
qualifiers
Give out different
dimensions according
to screen sizes
And PRESTO !
You are done for now
But there is a
downside to this.
Thank you!
Vivek Bhusal
UX Lead, YoungInnovations

More Related Content

PPTX
Ui 5
Michael Shrove
 
ODP
Android training day 1
Vivek Bhusal
 
ODP
Android training day 2
Vivek Bhusal
 
ODP
Day 6
Vivek Bhusal
 
ODP
Day seven
Vivek Bhusal
 
PDF
Android UI Fundamentals part 1
Marcos Paulo Souza Damasceno
 
PPSX
Basic of Java Netbeans
Shrey Goswami
 
PDF
iOS Layout Overview
Make School
 
Android training day 1
Vivek Bhusal
 
Android training day 2
Vivek Bhusal
 
Day seven
Vivek Bhusal
 
Android UI Fundamentals part 1
Marcos Paulo Souza Damasceno
 
Basic of Java Netbeans
Shrey Goswami
 
iOS Layout Overview
Make School
 

What's hot (20)

ODP
Разработка приложений для Android Honeycomb: ActionBar & Fragments
Alexey Ustenko
 
PPT
Android tools
Alexey Ustenko
 
PPTX
Android Widget
ELLURU Kalyan
 
ODP
Android App Development - 04 Views and layouts
Diego Grancini
 
PPTX
Android Tutorials : Basic widgets
Prajyot Mainkar
 
PPTX
Introduction to java netbeans
Shrey Goswami
 
PPT
Introduction to Zend Framework
Jamie Hurst
 
PDF
Android appwidget
Krazy Koder
 
PDF
Feedback using Angularjs + Typescript at Serenytics
Adrien Chauve
 
PPT
Day 4: Android: UI Widgets
Ahsanul Karim
 
ODP
Geekcamp Android
Hean Hong Leong
 
PDF
List Views
Ahsanul Karim
 
PPTX
GUI Programming in JAVA (Using Netbeans) - A Review
Fernando Torres
 
ODP
Android tutorials7 calculator
Vlad Kolesnyk
 
PPTX
Material Design Android
Samiullah Farooqui
 
PPTX
Introduction to React Native
Damian Zbrożek
 
PPTX
Java- GUI- Mazenet solution
Mazenetsolution
 
PPT
Graphical User Interface in JAVA
suraj pandey
 
PDF
Android Lollipop and Material Design
James Montemagno
 
PPTX
What's new in android jakarta gdg (2015-08-26)
Google
 
Разработка приложений для Android Honeycomb: ActionBar & Fragments
Alexey Ustenko
 
Android tools
Alexey Ustenko
 
Android Widget
ELLURU Kalyan
 
Android App Development - 04 Views and layouts
Diego Grancini
 
Android Tutorials : Basic widgets
Prajyot Mainkar
 
Introduction to java netbeans
Shrey Goswami
 
Introduction to Zend Framework
Jamie Hurst
 
Android appwidget
Krazy Koder
 
Feedback using Angularjs + Typescript at Serenytics
Adrien Chauve
 
Day 4: Android: UI Widgets
Ahsanul Karim
 
Geekcamp Android
Hean Hong Leong
 
List Views
Ahsanul Karim
 
GUI Programming in JAVA (Using Netbeans) - A Review
Fernando Torres
 
Android tutorials7 calculator
Vlad Kolesnyk
 
Material Design Android
Samiullah Farooqui
 
Introduction to React Native
Damian Zbrożek
 
Java- GUI- Mazenet solution
Mazenetsolution
 
Graphical User Interface in JAVA
suraj pandey
 
Android Lollipop and Material Design
James Montemagno
 
What's new in android jakarta gdg (2015-08-26)
Google
 
Ad

Viewers also liked (8)

PPTX
[Vietnam Mobile Day 2013] - Designing input form for smartphone application
AiTi Education
 
PPTX
Designing for Android - Anjan Shrestha
MobileNepal
 
PDF
Designing Secure Mobile Apps
Denim Group
 
PPTX
Android application design
Uday Sharma
 
PPTX
Design guidelines announced in I/O 2014. Material Design by Google by Betaglide
Manan Shah
 
PDF
Designing an Android App from Idea to Market
Tony Hillerson
 
PDF
10 Revealing Statistics About Compensation & Benefits You should Know
Elodie A.
 
PPT
Android ppt
blogger at indiandswad
 
[Vietnam Mobile Day 2013] - Designing input form for smartphone application
AiTi Education
 
Designing for Android - Anjan Shrestha
MobileNepal
 
Designing Secure Mobile Apps
Denim Group
 
Android application design
Uday Sharma
 
Design guidelines announced in I/O 2014. Material Design by Google by Betaglide
Manan Shah
 
Designing an Android App from Idea to Market
Tony Hillerson
 
10 Revealing Statistics About Compensation & Benefits You should Know
Elodie A.
 
Ad

Similar to Android training day 3 (20)

PDF
Multi Screen Hell
Abdullah Çetin ÇAVDAR
 
PPTX
Designing Android apps for multiple screens
Abhijeet Dutta
 
PDF
Adaptive Design for Android
Ni Yan
 
PPTX
UI and UX for Mobile Developers
Mohamed Nabil, MSc.
 
PDF
Android Apps Training - Day Four (Design)
Anjan Shrestha
 
PPTX
Android design lecture #1
Vitali Pekelis
 
PDF
Android Workshop - Session 2
NAILBITER
 
PDF
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
mstonis
 
PDF
Supporting multiple screens on android
Li SUN
 
PPTX
Android User Interface Design
Ahmad Firoz
 
PPTX
Android supporting multiple screen
Dao Quang Anh
 
ODP
Design guidelines for android developers
Qandil Tariq
 
PPTX
Creating apps that work on all screen sizes
Ravi Vyas
 
PDF
Coding for different resolutions
Robin Srivastava
 
PPTX
Designing For Android
Rachit Shukla
 
PDF
Android Talks #3 Android Design Best Practices - for Designers and Developers
Denis_infinum
 
PDF
Infinum Android Talks #03 - Android Design Best Practices - for Designers and...
Infinum
 
ODP
Supporting Multiple Screen In Android
robbypontas
 
PDF
Ts android supporting multiple screen
Confiz
 
PPTX
Consistent UI Across Android Devices
Irene Duke
 
Multi Screen Hell
Abdullah Çetin ÇAVDAR
 
Designing Android apps for multiple screens
Abhijeet Dutta
 
Adaptive Design for Android
Ni Yan
 
UI and UX for Mobile Developers
Mohamed Nabil, MSc.
 
Android Apps Training - Day Four (Design)
Anjan Shrestha
 
Android design lecture #1
Vitali Pekelis
 
Android Workshop - Session 2
NAILBITER
 
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
mstonis
 
Supporting multiple screens on android
Li SUN
 
Android User Interface Design
Ahmad Firoz
 
Android supporting multiple screen
Dao Quang Anh
 
Design guidelines for android developers
Qandil Tariq
 
Creating apps that work on all screen sizes
Ravi Vyas
 
Coding for different resolutions
Robin Srivastava
 
Designing For Android
Rachit Shukla
 
Android Talks #3 Android Design Best Practices - for Designers and Developers
Denis_infinum
 
Infinum Android Talks #03 - Android Design Best Practices - for Designers and...
Infinum
 
Supporting Multiple Screen In Android
robbypontas
 
Ts android supporting multiple screen
Confiz
 
Consistent UI Across Android Devices
Irene Duke
 

More from Vivek Bhusal (11)

PDF
Day 5
Vivek Bhusal
 
ODP
Session 2- day 3
Vivek Bhusal
 
PDF
Training Session 2 - Day 2
Vivek Bhusal
 
PDF
Training Session 2
Vivek Bhusal
 
ODP
Android training day 5
Vivek Bhusal
 
ODP
Android training day 4
Vivek Bhusal
 
PPTX
Stores munk presentation_aug10 (1)
Vivek Bhusal
 
PPTX
Mybudget
Vivek Bhusal
 
PDF
Wisevote - opendataweek @
Vivek Bhusal
 
PDF
Android training at GDG kathmandu Startup weekend bootcamp
Vivek Bhusal
 
PPTX
My medical info
Vivek Bhusal
 
Session 2- day 3
Vivek Bhusal
 
Training Session 2 - Day 2
Vivek Bhusal
 
Training Session 2
Vivek Bhusal
 
Android training day 5
Vivek Bhusal
 
Android training day 4
Vivek Bhusal
 
Stores munk presentation_aug10 (1)
Vivek Bhusal
 
Mybudget
Vivek Bhusal
 
Wisevote - opendataweek @
Vivek Bhusal
 
Android training at GDG kathmandu Startup weekend bootcamp
Vivek Bhusal
 
My medical info
Vivek Bhusal
 

Recently uploaded (20)

PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 

Android training day 3