2

I've got a very basic webview app, and this is the layout.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
    <WebView  xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        />
</LinearLayout>

In the manifest I have:

android:windowSoftInputMode="stateVisible|adjustResize"

In the page I load, there is an input at the bottom of the page. When I click it, the keyboard shows, but obscures it. It's not a case of the view shrinking but not scrolling, as I can't scroll the webview to show the input with the keyboard visible. What am I doing wrong?

fredley
  • 32,953
  • 42
  • 145
  • 236
  • Does it still resize? Maybe you can use `adjustPan` to move it so that the focused area is visible? – Szymon Apr 18 '14 at 21:51

1 Answers1

0

It's a bug with WebViews in fullscreen apps. More information in this other answer, but I fixed it by making my app non-fullscreen.

Community
  • 1
  • 1
fredley
  • 32,953
  • 42
  • 145
  • 236