You'll need to write a custom layout manager that does this as part of its
layout.

On Mon, Sep 20, 2010 at 11:47 PM, Mark Carter <mjc1...@googlemail.com>wrote:

> Imagine a View filling the width and the top half of the screen. The
> height varies depending on whether the IME is shown or not (and
> whether the screen is in landscape/portrait mode). The IME itself has
> variable height.
>
> Now imagine that View has a child LinearLayout (vertical) showing a
> couple of ImageButtons (one above the other) on the right hand side.
>
> Normally this works fine, but sometimes, when the IME is showing, the
> two icons do not quite fit within the height, and so I would like to
> change the orientation of the LinearLayout to horizontal.
>
> How can this be done as the main View automatically resizes?
>
> Note - I really want the LinearLayout orientation-change to happen
> according to the parent view height rather than whether the IME is
> showing (although this would be an acceptable second-best solution).
>
> --
> 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to