-1

I need to develop an app for different devices. Where to create and save different layouts. Is there is any way to share the drawable-hdpi across all the layouts. I am more concerned if I need to save the same images in different set of drawable folders as this eat up lot of space.

Kindly advice.

4

1 回答 1

0

This tells you almost everything you need to know about these things: http://developer.android.com/guide/practices/screens_support.html

The key is that in addition to drawable-hdpi and friends, you can have hyphens for all your resources, like layout-hdpi. But for layout you're probably most interested in the screen sizes, e.g. layout-large.

To answer your question about sharing, something in drawable-hdpi will be available to all screens, but will be shrunk down for mdpi and blown up for xhdpi. The same thing in drawable will use the same number of raw pixels on any density screen, looking small on xhdpi and large on mdpi.

于 2013-03-30T13:55:45.580 回答