[android-developers] Re: Simple Question about Res folders

2010-07-03 Thread Al Sutton
They are *not* for resolutions. They are for screen densities (i.e.
the number of pixels per inch on the screen).

To illustrate this point, the Nexus One and the Dell Streak both have
screens with a resolution of 800x480 pixels, but because the Nexus One
has a smaler physical screen it has a hight pixel density, so the
Nexus One uses assets from drawable-hdpi and the Dell Streak uses
assets from drawable-mdpi.

Al.

On Jul 2, 3:45 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 02.07.2010 18:37, B Woods пишет: What are the differences between 
 drawable-hdpi, drawable-ldpi, and
  drawable-mdpi? Do I need to place my graphics in each of these folders?

 They are versions of the same graphics files for different screen
 resolutions.

 If you don't provide hdpi and ldpi versions, Android loads the default
 version from drawable and scales it as necessary.

 Sometimes this looks ugly, so you need to provide alternative versions
 yourself. This can be done individually for each graphics file used in
 your app's UI.

 http://developer.android.com/guide/practices/screens_support.html

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Simple Question about Res folders

2010-07-02 Thread Phil
They are there to allow your app to display icons, etc of different
sizes, for different devices.

For example, H.D. icons are 72x72, MD are 48x48 and LD are 36x36.

On Jul 2, 10:37 am, B Woods bradleydeanwo...@gmail.com wrote:
 What are the differences between drawable-hdpi, drawable-ldpi, and
 drawable-mdpi? Do I need to place my graphics in each of these folders?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en