Re: [android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-07 Thread Mathias Lin
Hi Dianne, thanks for your reply. You'd need to set your view hierarchy to not correctly resize to adjust to its window How can I 'achieve' that (setting a view hierarchy that wouldn't correctly resize)? But even if the view hierarchy would be correctly set, why would it resize at all?

Re: [android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-07 Thread Dianne Hackborn
On Tue, Sep 7, 2010 at 4:21 AM, Mathias Lin m...@mathiaslin.com wrote: How can I 'achieve' that (setting a view hierarchy that wouldn't correctly resize)? You make a broken view hierarchy that uses fixed sizes, so doesn't adjust to the actual window size. Again, not something I would

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-07 Thread Mathias Lin
On Sep 8, 8:58 am, Dianne Hackborn hack...@android.com wrote: You make a broken view hierarchy that uses fixed sizes, so doesn't adjust to the actual window size. Again, not something I would recommend. I don't see how non-fixed sizes make a difference here in my case. I have two activities

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Mathias Lin
Interestingly though: when I set my ListView visibility to View.INVISIBLE in my first activity, then the layout doesn not get moved up anymore! This is my layout/xml: 1) http://pastebin.com/5zzVxjbK ListView where layouts is been moved up by the softkeyboard 2) http://pastebin.com/KFtPuHvP

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Ed
Instead of View.INVISIBLE try View.GONE. Invisible = This view is invisible, but it still takes up space for layout purposes. http://developer.android.com/reference/android/view/View.html Also in your scroll view layout try setting android:fillViewport=true on the scroll view. Ed On Sep 7,

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Mathias Lin
Hi Ed, On Sep 7, 6:25 am, Ed edscha...@gmail.com wrote: Instead of View.INVISIBLE try View.GONE. Sorry, you misunderstood. View.INVISIBLE was just for testing purposes to see if it makes any differences. In my app I cannot hide the elements of course, I need them there to be visible to the

Re: [android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Dianne Hackborn
The window is just resized if you set it to resize mode. You'd need to set your view hierarchy to not correctly resize to adjust to its window, which is... questionable. On Mon, Sep 6, 2010 at 7:57 PM, Mathias Lin m...@mathiaslin.com wrote: Hi Ed, On Sep 7, 6:25 am, Ed edscha...@gmail.com