I'm implementing an application which must support multiple screens and 
provide devices with different layout designs. My task claims that layout 
design separation must be based on device resolution: for those devices 
with < 1024x800 resolution use design "a" and for >= 1024x800 - design "b". 
I need to say that "a" and "b" differ not only in structure(listviews vs. 
gridviews) but also in resources they incorporate such as images. For 
instance, splash screens look completely different.

I've been looking into multiple screens 
guide<http://developer.android.com/guide/practices/screens_support.html>and, 
indeed, it says that a developer shouldn't base separation of design 
on resolution, but what if I have to ?
At first, I was hoping that size-based separation is the same as resolution 
but it seems that it's not: there're handsets with high resolution and 
tablets with low.

At this point I can only figure out resolution and use a layout for either 
of those designs. In each of those layouts I'd like to make references to 
appropriate design elements(images) like this:

/main_480x800.xml
<ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/IMAGE_480x800" />

 /main_HIGH_480x800.xml
<ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/IMAGE_480x800" />

I hope there's a better way of implementing it - please, give me your 
suggestions.

Best regards,
Dmitriy F. <[email protected]>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to