Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Ravi Vyas
• Android Developer, Project Manager at Techjini Solution  Pvt Ltd• Co-Organizer of the Bangalore Android User Group• Crea...
•   Screen size•   Screen density•   Orientation•   Resolution
• Phones are not always• Android phones flavors :     • Different screne sizes     • Different screen densities• Always ha...
• Use the <supports-screens> tag in the manifest to  specify which screens you plan to support• <supports-screens         ...
• You can provide different resources & layouts based on  various factors like screen size , screen pixel density ,  orien...
•   Do not use PX to specify size•   Use rules for placement for pixel distances•   Rethink, recheck your rules .•   Check...
• 9 Patches
• XML Drawables   <item android:id="@android:id/background">      <shape>        <corners android:radius="15dip" />       ...
• While designing the UI enter real sample data to better  visualize the UI.• When displaying numbers , use the largest po...
• contact@ravivyas.co  m• @ravivyas84• Ravivyas.com/+
Creating apps that work on all screen sizes
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
Screen orientations in android
Next
Upcoming SlideShare
Screen orientations in android
Next
Download to read offline and view in fullscreen.

Share

Creating apps that work on all screen sizes

Download to read offline

My presentation at droidcon. Please note , the slides by themselves are pretty mute , I would be pinning down some blogposts soon.

Also note on slide 8 the image on the top is incorrect [ and was on droidcon too :( ]

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Creating apps that work on all screen sizes

  1. 1. Ravi Vyas
  2. 2. • Android Developer, Project Manager at Techjini Solution Pvt Ltd• Co-Organizer of the Bangalore Android User Group• Creator of the Blrdroid logos
  3. 3. • Screen size• Screen density• Orientation• Resolution
  4. 4. • Phones are not always• Android phones flavors : • Different screne sizes • Different screen densities• Always have a design plan for both portrait and landscape :• Landscape != Portrait + Δwidth - Δheight
  5. 5. • Use the <supports-screens> tag in the manifest to specify which screens you plan to support• <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true“ />
  6. 6. • You can provide different resources & layouts based on various factors like screen size , screen pixel density , orientation etc layout-land layout-port res-hdpi res-mdpi Android will handle changes by itself• Manually handle configuration changes onConfigurationChanged(Configuration newConfig) android:configChanges="keyboard|orientation"
  7. 7. • Do not use PX to specify size• Use rules for placement for pixel distances• Rethink, recheck your rules .• Check how alignParentLeft/Right will look on other screens
  8. 8. • 9 Patches
  9. 9. • XML Drawables <item android:id="@android:id/background"> <shape> <corners android:radius="15dip" /> <gradient android:startColor="#ff9d9e9d" android:centerColor="#ff5a5d5a" android:centerY="0.75" android:endColor="#ff747674" android:angle="270" /> </shape> </item>
  10. 10. • While designing the UI enter real sample data to better visualize the UI.• When displaying numbers , use the largest possible number to test• Don’t trust emulator.• Test on as many devices as possible.• Motodev Studio – Device Anywhere
  11. 11. • contact@ravivyas.co m• @ravivyas84• Ravivyas.com/+
  • FatemehSaeedifar

    Oct. 8, 2018
  • RaveeshAgarwal1

    Jul. 3, 2017
  • PvrThakkar

    Mar. 7, 2016
  • ImmanuelHolarniyi

    Dec. 6, 2015
  • Robbypatel

    Sep. 3, 2015
  • mimdad07

    May. 28, 2015
  • rajeshgoswami2

    Apr. 9, 2015
  • devpkjain

    Feb. 3, 2015
  • GirishHV

    Feb. 2, 2015

My presentation at droidcon. Please note , the slides by themselves are pretty mute , I would be pinning down some blogposts soon. Also note on slide 8 the image on the top is incorrect [ and was on droidcon too :( ]

Views

Total views

31,846

On Slideshare

0

From embeds

0

Number of embeds

9

Actions

Downloads

283

Shares

0

Comments

0

Likes

9

×