Monday, July 2, 2012

Re: [android-developers] Separate design based on resolution. Android 2.3

Tell your client to do it another way.... The Android recommended way.

On Jun 29, 2012 1:30 AM, "Dmitriy F" <midnight.88s@gmail.com> wrote:
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 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. <midnight.88s@gmail.com>

--
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

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate