-1

I have converted my website into an app using Android Studio. However, every time the application open the website is not fit automatically to the screen. What I'm doing wrong? Do this have to deal with the padding? "16dp"

android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"

1 Answers1

0

Just remove the padding you set on your Relativelayout. Something like this:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <WebView
        android:id="@+id/webView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>

Hope this is what you want.

Srijith
  • 1,695
  • 17
  • 29