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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---