Why do you want to do this?  The Streak's screen is really what it reports
-- mdpi density, but more space.  If you use hdpi graphics, then your
graphics will appear incorrectly large on the screen.  You should layout
your UI to use the extra space, not blow it up larger.

The main time I can think where it would be okay to just use larger graphics
is a game, where having everything blow up bigger is not so noticeable.  In
that case, you should maybe just go down the path of picking the graphics
you want to use explicitly based on the raw space you have to work with.
 Before going down that road, though, you should probably stop and consider
what it really means to be manually adjusting for whatever the screen is.

On Fri, Jul 2, 2010 at 5:15 PM, Stephen Lebed <srle...@gmail.com> wrote:

> I'm hoping there is an answer to my problem.  I've created two sets of
> graphics for my app.  A set for medium res phones and a set for high
> res phones.  I've placed them into their drawable-mdpi and drawable-
> hdpi folders.
>
> I've now learned that the Dell Streak identifies itself as a large-
> mdpi display.  I've created a drawable-large folder and placed the
> high res images into it.  Its so far, everything is working in the
> emulator.
>
> My problem is I would like to create a single set of high res graphics
> and have it availalbe to both drawable-hdpi and drawable-large.  I've
> tried using the example in the docs
>
> http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources
>
> but it doesn't seem to work.  I wanted to use drawable-hdpi to store a
> single copy of all the high res images, and store the xml aliases in
> drawable-large.  It compiles without error, but when my app tries to
> read the drawable, it throws an error, Null Pointer Exception.
>
> Does the alias xml file only work with images in drawable, or can they
> be in a drawable-hdpi folder?  When I try to pull the file from
> drawable-hdpi it causes the error.
>
> Any help would be appreciated.
>
> Stephen
>
> --
> 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<android-developers%2bunsubscr...@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

Reply via email to