Android window doesn't resize/pan when softinput opened from WebView

后端 未结 4 1687
甜味超标
甜味超标 2021-02-18 13:14

My problem is following.

  1. Application uses theme android:Theme.NoTitleBar.Fullscreen and there is only one Activity, all other views are <
4条回答
  •  暖寄归人
    2021-02-18 13:59

    Here is what we have done to make it work. As it is by design, FLAG_FULLSCREEN activity won't allow adjusting the views when a keyboard is visible, we took an approach with custom Keyboard Notification Listener and OnTouch listener of Webview.

    KeyboardHelper.java - to find out the keyboard visibility

    Webview Full-Screen Activity Adjustment - To adjust the webview based on the notification and touch point.

    Hope it helps!

提交回复
热议问题