[android-developers] Using a different layout depending on parent dimensions

2010-09-21 Thread Mark Carter
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

Re: [android-developers] Using a different layout depending on parent dimensions

2010-09-21 Thread Dianne Hackborn
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.comwrote: 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