Skip to content

Instantly share code, notes, and snippets.

@davidelp68
Created September 1, 2019 12:44
Android Studio - WebView
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/activity_main"
tools:context=".MainActivity">
<!--Aggiunta di una WebView-->
<WebView
android:layout_width="match_parent" <!--occupa la larghezza massima disponibile-->
android:layout_height="match_parent" <!--occupa l'altezza massima disponibile-->
android:id="@+id/myweb" <!--nome identificativo del componente-->
tools:layout_editor_absoluteY="8dp"
tools:layout_editor_absoluteX="8dp"
android:layout_alignParentRight="false"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment