1

We have different densities for different phone sizes as it is given in google developer website

36x36 (0.75x) for low-density
48x48 (1.0x baseline) for medium-density
72x72 (1.5x) for high-density
96x96 (2.0x) for extra-high-density
180x180 (3.0x) for extra-extra-high-density
192x192 (4.0x) for extra-extra-extra-high-density

Now if i have an image of size 60x60 for mdpi phone then i can calculate all other sizes by multiplying 60 by (1.5, 2.0, 3.0 or 4.0). Then how do i calculate the size of images for tablet? If i can put it simply what should i tell graphic designer to provide me if i am going to build a new app that will support both phone and tablet?

Nouman Bhatti
  • 1,777
  • 4
  • 28
  • 55
  • you can try these sizes `72x72 (1.0x baseline) for 540dp-medium-density 108x108 (1.5x) for 540dp-high-density 144x144 (2.0x) for 540dp-extra-high-density 216x216 (3.0x) for 540dp-extra-extra-high-density ` – Fabin Paul Nov 23 '15 at 06:37
  • But these sizes are not foolproof. Some of the icons will have to be resized after viewing them on device. And I have omitted ldpi and xxxhpi to reduce apk size.. – Fabin Paul Nov 23 '15 at 06:39

3 Answers3

0

We created some application for tablet's. We create Two different Layout folder's in res directory, as follows res/layout-sw600dp/ & res/layout-sw720dp/ . In these folder's we Put all layout files and manage them to set for Tablet screen's. you can go with following device resolution for tablet screen's

600dp: a 7” tablet (600x1024 mdpi). 720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc).

for more info, just check http://developer.android.com/guide/practices/screens_support.html

Hey dear may be it will help you..

https://stackoverflow.com/a/23009368/1083093

Community
  • 1
  • 1
Himanshu Shekher Jha
  • 1,334
  • 2
  • 14
  • 27
  • you havent got my points i am talking about drawable sizes, how can i determine drawable size for diffrent tablet densities. Lets say if i have an image of size 60x60 for phone mdpi and i want to create this image for 7” tablet (600x1024 mdpi) how i can i do that? – Nouman Bhatti Nov 23 '15 at 06:27
0

Like phones, tablets have defined dpi too. If you are creating a drawable for a xxhdpi phone it'll be the same for a xxhdpi tablet.

Shayan_Aryan
  • 2,002
  • 1
  • 29
  • 31
-1

All you need is Android Assets Studio. It does all the work following the official best practices.

Here is the link:

https://romannurik.github.io/AndroidAssetStudio/

First you need to read these:

http://developer.android.com/training/basics/supporting-devices/screens.html http://developer.android.com/guide/practices/screens_support.html

You might probably need this:

https://romannurik.github.io/AndroidAssetStudio/nine-patches.html

johnrao07
  • 6,690
  • 4
  • 32
  • 55
  • thanks for response. i know about androidassetstudio but i dont know how i can generate all assets for both phone and tablet for all screen sizes and densities. Can you elaborate a little about android asset studio? – Nouman Bhatti Nov 23 '15 at 06:22
  • in this link we provide an image of certain density and it generate outputs of densities (mdpi, hdpi, xhdpi, xxhdpi). If i have an image for phone device of density xxhdpi then it will give me all other densities for device. How can i get images of all densities for tablet? As i am newbie so sorry if couldn't get it – Nouman Bhatti Nov 23 '15 at 06:45
  • It selects automatically from the folder based on the device and screen sizes, and scales to work best on different devices and screen... – johnrao07 Nov 23 '15 at 06:49