Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

Hello I am Android Developer, working on android application. I require to make all drawables for all density for my android app. Is there any standard ratio I should keep for that and any tool for that. Any idea ?

share|improve this question
2  
what is a 'drawable'? –  DA01 Aug 29 at 18:47

2 Answers 2

If you have Photoshop, it would be good for generating different size drawables.

So giving a example if I like to generate a icon say 48x48dp (Now as per Google dp is density independent pixel, 1dp=1pixel on a 160 dpi screen).

  1. So first create a new document in PS of size 48x48 pixels with ppi set to 160. Draw/Paste your image and save it.

    Now generally there are 5 types of screens low (120 dpi), medium (160 dpi), high (240 dpi), extra high (320 dpi) and 2*extra high (480 dpi).

  2. We have already created Icon for 160dpi screen, now change the image PPI (keeping aspect ratio same) to 120/240/320/480 and you'll have drawables for all screens. Put them in respective folders. Cheers !

(You can use other softwares too for changing image size/resolution)

share|improve this answer
    
ppi should be set to 72 for an mdpi drawable, not 160. See here for more info: plus.google.com/+AndroidDevelopers/posts/6Eng1FFa2cY –  dbasch Sep 26 at 15:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.