Note that there are some explanatory texts on larger screens.

plurals
  1. POI can´t put a webview in FULL SCREEN
    text
    copied!<p><strong>Hi, i have this problem and i am newbie with this..</strong> </p> <p><a href="http://imageshack.com/a/img191/6905/oizp.png" rel="nofollow">This is the image of my problem</a></p> <p><strong>As you can see, i get a margin that i DONT WANT! All that i did , was put the Webview and extended it all that i could. But i get a margin. But in MARGIN option, it dont have margin, WTF!</strong></p> <p><a href="http://3.bp.blogspot.com/-_xch89VynUE/UI0Ozpgx4OI/AAAAAAAAA3Q/e_0Mbz9CXng/s1600/android_webview.png" rel="nofollow">This is the imagen that i want</a></p> <p><strong>Here my code ( BUT, i think that this doesn´t have relation with the webview size D: )</strong></p> <pre><code> public class SecondActivity extends Activity { private WebView browser; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_second); browser = (WebView)findViewById(R.id.webView1); //habilitamos javascript y el zoom browser.getSettings().setJavaScriptEnabled(true); browser.getSettings().setBuiltInZoomControls(true); //ZOOM browser.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR); browser.loadUrl("http://lolking.net"); browser.setWebViewClient(new WebViewClient() { // evita que los enlaces se abran fuera nuestra app en el navegador de android @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { return false; } }); // setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } } </code></pre> <p><strong>And.. Here my layout:</strong> </p> <pre><code>&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" android:background="@drawable/fondo" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".SecondActivity" &gt; &lt;WebView android:id="@+id/webView1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_margin="0dp" /&gt; </code></pre> <p></p> <p>Thanks and sorry for my english..</p>
 

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