Sunday, July 31, 2011

[android-developers] Re: Converting to xlarge layouts

Using drawable-xlarge is probably a bad idea. It might work for the
current wave of 1280x800 10" tablets, but what about xlarge tablets
with other resolutions?

Android is not designed to simply scale up the user interface. Your
dialogs probably look just fine one a real tablet. You can compare
this with the message dialogs on a normal laptop.

Tablets have a larger screen and the normal way to deal with that is
to show more information at the same time. Sometimes this just works
and sometime you have to adjust the layouts, specify layout-xlarge or
rethink the UI completely (like the Android Market app). But this
obviously depends on what kind of app you have.


On 29 Juli, 15:44, Neilz <neilhorn...@gmail.com> wrote:
> Hi all. I'm altering my app so that it fits nicely into a tablet, by
> specifing layout-xlarge and drawable-xlarge resources.
>
> One thing I don't seem to be able to alter is the dialogs. I have a
> number of these in my code:
>
> AlertDialog.Builder alert = new AlertDialog.Builder(MyActivity.this);
> alert.setTitle(R.string.dialog_title);
> alert.setIcon(R.drawable.icon);
> alert.setMessage(R.string.dialog_desc);
> // add some buttons and actions
> alert.show();
>
> These are appearing very small, with tiny text, and don't seem to be
> being re-sized according to the device type. How can I achieve this
> please?
>
> I'm using the standard emulator for testing this, by the way.

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

No comments:

Post a Comment