How to restrict the WebView inside in android program -
I restrict Edited: Full screen is taken by that Edit: If you also add line, your code should work: Otherwise your code will start browser (which is full screen). For example, if you click on the back, you should see your gray box. webView limited inside some pixels webView WebView , it is not inside 200px * 200px .
& lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http: //schemas.android.com/tools" Android: layout_width = "wrap_content" Android: layout_height = Android: paddingBottom = "@ Dimen / activity_vertical_margin" Android: paddingLeft = "@ Dimen / activity_horizontal_margin" Android: paddingRight = "@ Dimen / activity_horizontal_margin" Android: paddingTop = "@ Dimen / activity_vertical_margin" tool: Reference = "MainActivity "Android: ID =" @ + id / layout "& gt; & Lt; / LinearLayout & gt;
web.setWebViewClient (new WebViewClient ());
Comments
Post a Comment