Note that there are some explanatory texts on larger screens.

plurals
  1. POwebview issue in android app
    primarykey
    data
    text
    <p>i am designing an app common for both andorid and ios apps. In this in a particular activity i am loading an url which contains an image. The size of the image is to be as width - 960 and height - 640.</p> <p>In the php code we have added the following line</p> <pre><code>&lt;meta name="apple-mobile-web-app-capable" content="yes"&gt; &lt;meta names="apple-mobile-web-app-status-bar-style" content="black-translucent"&gt; &lt;meta name='viewport' content='width=320'/&gt; </code></pre> <p>so that the webpage may get fitted within the screen size itself. This worked good for iPhone, whereas in android device i have loaded the page in a webview. My layout is as follows</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;WebView android:id="@+id/webView1" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;/WebView&gt; &lt;/LinearLayout&gt; </code></pre> <p>in my coding part is as follows</p> <pre><code>webView = (WebView)findViewById(R.id.webView1); WebSettings webSettings = webView.getSettings(); webSettings.setUseWideViewPort(true); webSettings.setLoadWithOverviewMode(true); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("http://xxxxxxxx.com/page/8"); </code></pre> <p>But still in my 480x854 device on android 2.1 version i am getting some white spaces in the bottom and right corner of the web page</p> <p>Where as in the WVGA854 emulator of android2.2 the view gets appeared with a horizontal and vertical scroll bars.</p> <p>In all the android device i need the webpage to be exactly withing the screen size, without any white spaces or scroll bars.how to get this.....</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.
    1. This table or related slice is empty.
    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