Thursday, July 21, 2011

[android-developers] Small screens and HDPI

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment