Note that there are some explanatory texts on larger screens.

plurals
  1. POWebView size is expanding but not contracting as per the text in it
    primarykey
    data
    text
    <p>I am using WebView to show parsed XML and HTML content. I have set the layout_height of webview to wrap_content. It works fine when the matter is large in size but when the matter is small it do not wrap to it the below space remains white. pls tell me how to wrap it each time when I change content in webView.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background = "#ffffff" &gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background = "#ffffff" &gt; &lt;WebView android:layout_height = "wrap_content" android:layout_width = "wrap_content" android:id = "@+id/webcontent" /&gt; &lt;LinearLayout android:layout_width = "fill_parent" android:layout_height = "wrap_content" android:orientation = "horizontal" android:id = "@+id/buttons" android:background="#ffffff"&gt; &lt;Button android:layout_height = "wrap_content" android:layout_width = "0dp" android:id = "@+id/previousdata" android:text = "Back" android:layout_weight = "1" android:layout_gravity="center_vertical"/&gt; &lt;Button android:layout_height = "wrap_content" android:layout_width = "0dp" android:id = "@+id/nextdata" android:layout_weight = "1" android:text = "Next" android:layout_gravity="center_vertical"/&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>Now I am getting the problem that if I am running my app in portrait mode the webView is giving extra white space and not contracting according to the data, but if I change the orientation to landscape the white space diminished... Plz explain what's happening to my view and how can I diminish the extra white space... thanx in advance... </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload