title: Why does minHeight attribute not work in WebView Android?
body: <p>This question has already been asked <a href="https://stackoverflow.com/questions/7791414/androidminheight-not-working-in-webview">here</a>, but it has no solution. </p>
  
  <p>I have a <code>WebView</code>. I want to set minimum height to the <code>WebView</code> using <code>minHeight</code> attribute, but it doesn't work. The same attribute works for Button.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 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="com.example.anshul.webview.WebActivity"&gt;
  
  &lt;WebView
      android:id="@+id/webView"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:minHeight="400dp"&gt;&lt;/WebView&gt;
  
  &lt;Button
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:minHeight="150dp"
      android:text="This is a Button. It's minHeight is set to 150 dp and it works !!"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Clearly from the below image, the WebView is not supporting the <code>minHeight</code> attribute. Does anybody knows a solution for this problem?</p>
  
  <p><a href="https://i.stack.imgur.com/quWtT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/quWtT.png" alt="enter image description here"></a></p>