Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/activity_main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.okedroid.mysimplebrowser.MainActivity">
- <WebView
- android:id="@+id/webView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- android:layout_marginTop="72dp"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- >
- <EditText
- android:id="@+id/urlText"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="match_parent"
- android:ems="10"
- android:hint="Ketik URL Disini"
- android:inputType="text|textPersonName"
- android:text="http://www."/>
- <Button
- android:id="@+id/buttonGo"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@+id/urlText"
- android:layout_alignBottom="@+id/urlText"
- android:layout_alignParentEnd="true"
- android:layout_marginEnd="16dp"
- android:onClick="goToURL"
- android:text="GO"/>
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement