[android-developers] Small screens and HDPI

2011-07-21 Thread Alex
Hey, I have recently come across a situation where drawable-hdpi
resources on a small-screen, hdpi device look terrible. I would like
to force smallscreen devices to use mdpi resources.

Copying (or resizing) all the pertinent drawables from /drawable-mdpi
to /drawable-small causes too much APK size inflation to justify, and
it would be *another* item in the resource maintenance hassle.

My first idea was to create xml reference files in /drawable-small
that reference the drawable-mdpi resources, but i dont know how to
hard-link to a specific resolution's (in this case mdpi) drawable
via the @drawable/ syntax.

Whats my way out?

-- 
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


Re: [android-developers] Small screens and HDPI

2011-07-21 Thread Dianne Hackborn
Having a drawable-small indicates a more fundamental problem with what you
are doing.  Why are you doing such a thing?  What is the configuration of
this device?  You really need to provide more detail of exactly what you are
doing and the problematic behavior you are seeing.

On Thu, Jul 21, 2011 at 9:54 AM, Alex alexdavisspec...@gmail.com wrote:

 Hey, I have recently come across a situation where drawable-hdpi
 resources on a small-screen, hdpi device look terrible. I would like
 to force smallscreen devices to use mdpi resources.

 Copying (or resizing) all the pertinent drawables from /drawable-mdpi
 to /drawable-small causes too much APK size inflation to justify, and
 it would be *another* item in the resource maintenance hassle.

 My first idea was to create xml reference files in /drawable-small
 that reference the drawable-mdpi resources, but i dont know how to
 hard-link to a specific resolution's (in this case mdpi) drawable
 via the @drawable/ syntax.

 Whats my way out?

 --
 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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