Thanks,

There is nothing obvious that I can see.

In another posting that I found by you I found the following:

(http://groups.google.com/group/android-developers/browse_thread/
thread/5197932c3d691566/550605083fe8fda7?show_docid=550605083fe8fda7)

"Yes it uses pan, unless the view hierarchy has a container that can
resize
to accommodate the IME."


In my case I don't have anything in the SurfaceView that fixes its
size. Is there a trick with the gravity field, or another attribute
that I might be missing?

Thanks
Lee

On Jul 10, 2:30 pm, Dianne Hackborn <[email protected]> wrote:
> Did you set the surface view to a fixed size?  Your layout looks like it
> will resize, but often surface view has a specific size (such as the size of
> a video) so it can't get resized.  Looking at your state in hierarchyviewer
> might give some clues about what is going on at that point.
>
>
>
>
>
> On Thu, Jul 9, 2009 at 9:25 PM, Lee <[email protected]> wrote:
>
> > I have an application that renders content into a SurfaceView. When
> > the longPress event is received the application requests that the soft
> > keyboard be displayed so the user can interact with what is being
> > displayed on the SurfaceView.
>
> > The problem that I have is that the size of the SurfaceView is not
> > changed when the soft keyboard is displayed.  I have read the article
> > titled: "Updating applications for on-screen input methods" and I've
> > modified my application manifest so that the following is specified
> > for the activity in question:
>
> >        <activity
> >            android:name="AndroidSurfaceViewActivity"
> >                android:configChanges="orientation|keyboardHidden"
> >                android:windowSoftInputMode="adjustResize">
> >            <intent-filter>
> >                <action android:name="android.intent.action.VIEW" />
> >                <category
> > android:name="android.intent.category.DEFAULT" />
> >            </intent-filter>
> >        </activity>
>
> > So you can see that I've specified the "android:windowSoftInputMode"
> > tag to be resize.
>
> > I am not getting any calls to either my surfaceChanged method for the
> > SurfaceView or to my sizeChanged callback for the view itself.
>
> > Should I be hooking another function to be notified when the Window
> > itself changes size?
>
> > The SurfaceView is contained within a FrameLayout and the XML is
> > specified as follows:
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <FrameLayout xmlns:android="http://schemas.android.com/apk/res/
> > android"
> >    android:layout_width="fill_parent"
> >    android:layout_height="fill_parent">
>
> >        <MyApplicationSurfaceView
> >                xmlns:android="http://schemas.android.com/apk/res/android";
> >                android:id="@+id/ReceiverSurfaceView"
> >                android:layout_height = "fill_parent"
> >                android:layout_width  = "fill_parent"/>
> > </FrameLayout>
>
> > Any feedback about:
>
> > 1) Cause the size of the surface view to have its size changed when
> > the on screen keyboard is shown and
> > 2) Detect the size of the surface view size change (if the above
> > methods are incorrect)
>
> > Would be greatly appreciated.
>
> > Thanks
> > Lee
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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 [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