OK, so by experimenting with a test application containing:

- A Button to toggle the IME (show/hide).
- A ScrollView containing TextViews.

I can get the behviour I require.  However, this is obviously just a
test app.

The issue still stands that my View implementation doesn't get it's
onSizeChanged() method called by the framwork when the IME is shown/
hidden.  Comparing my test app with the non-functioning app, I note
that in the test app the ScrollView's onSizeChanged() gets called by
the framework requesting a layout, and then an invalidate() to redraw
the screen.  This behaviour is missing in my non-functioning
application; there is no call to the ScrollView's onSizeChanged() or
to my implemented View's onSizeChanged().

I'd really appreciate some help on this one, as it's pretty much the
last thing I've got to get done for my app.

Cheers

James

On Mar 2, 6:13 pm, jamesc <[email protected]> wrote:
> How do I ensure that I get the 'resize' behaviour when the IME is
> shown/hidden?
>
> I've included the following in my manifest:
>
> android:windowSoftInputMode="adjustResize"
>
> What else am I supposed to add?  I've read that the container that the
> View is placed in should 'support resize' but what layouts support
> this?
>
> Cheers
>
> James

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to