title: Keyboard hides the input field in WebView
body: <p>I have a layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:tools="http://schemas.android.com/tools"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:context=".StreamActivity"
            android:orientation="vertical"&gt;
  
  &lt;FrameLayout
      android:id="@+id/streamLayout"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;SurfaceView
          android:id="@+id/surface"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="start"&gt;
      &lt;/SurfaceView&gt;
  
  &lt;/FrameLayout&gt;
  
  &lt;WebView
      android:id="@+id/web_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_gravity="start"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>FrameLayout for a video player. WebView is a chat.
  When I begin to type text into the chat, the keyboard hides input field.</p>
  
  <p>I tried experimenting with android: windowSoftInputMode, but it does not work for me. The problem with chat, it is written on Angular and resizing WebView does not change the size of the chat, it must be done manually like webView.loadUrl("javascript: $('section.content-window:first').css('height', '" + finalSize + "px');");</p>
  
  <p>I have a listener that is triggered when the keyboard is shown and hidden.
  I would like to manually change the size of the chat when the keyboard is showed, but it does not work well because when I change the size of chat it loses focus and the keyboard hidden.</p>
  
  <p>I also thought to put the content of the Activity in ScrollView. If override OnTouchListener this will lock scroll by user, but I will still be able to scroll from code. So, I wanted if the keyboard is shown then scroll content of the Activity so it would be visible the entire chat. I think this will work, but not good because it will lock the scrolling in WebView.</p>
  
  <p>Advise how to fix this problem with the keyboard and chat?</p>