Skip to content

Instantly share code, notes, and snippets.

@stevesohcot
Created May 15, 2016 21:37
Show Gist options
  • Select an option

  • Save stevesohcot/2ca6e7bff432c0ae909fd2d51637821d to your computer and use it in GitHub Desktop.

Select an option

Save stevesohcot/2ca6e7bff432c0ae909fd2d51637821d to your computer and use it in GitHub Desktop.
Android Webview - Activity Main
// http://stevesohcot.com/tech-lessons-learned/2016/05/15/android-webview-sample-code
<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"
tools:context=".MainActivity">
<WebView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/webView"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment