Delveloping For Android High Res Screens, But Supporting Low Res Screens
I've been developing Android games for the lower res screens (320x480) and then letting Android handle the density adjustments so the games work on high res screens. It allows me
Solution 1:
Yes.
In your xml layouts, use dip values for sizes.
Example:
100dip = 75 @ 120dpi 100 @ 160dpi 150 @ 240dpi
if you need a higher res resource for certain drawables, use the... drawable-hdpi drawable-mdpi drawable-ldpi
The app will use the drawable from the correct resource folder depending on the screen's density.
Try not to use absolute widths and heights on certain elements if you can use FILL_PARENT or WRAP_CONTENT.
Here's some good tips: http://developer.android.com/guide/practices/screens_support.html
Solution 2:
Yes, and it works the same. You put your resources in the appropriate directory and the system will downscale them accordingly.
Post a Comment for "Delveloping For Android High Res Screens, But Supporting Low Res Screens"