See this code for Webview - Webview.java
public class webView extends AppCompatActivity {
public WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_web_view);
webView = (WebView)findViewById(R.id.webview);
webView.setWebViewClient(new WebViewClient());
webView.loadUrl("https://ewaybillgst.gov.in/Account/EWBUserRegistration.aspx");
}
}
Webview.xml
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp"
android:id="@+id/webview"
/>
Please Tell Me, how to load this URL entirely inside phone's screen so that it doesn't move outside. See this screenshot of phone's screen - webview is moving to right side of phone's screen so we have to drag it to see whats on the right side
I want that this page doesn't move outside the phone's screen..