Advertisement
Guest User

activity_main.xml

a guest
Jan 23rd, 2017
11,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.93 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.     xmlns:android="http://schemas.android.com/apk/res/android"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:id="@+id/activity_main"
  6.     android:layout_width="match_parent"
  7.     android:layout_height="match_parent"
  8.     android:paddingBottom="@dimen/activity_vertical_margin"
  9.     android:paddingLeft="@dimen/activity_horizontal_margin"
  10.     android:paddingRight="@dimen/activity_horizontal_margin"
  11.     android:paddingTop="@dimen/activity_vertical_margin"
  12.     tools:context="com.okedroid.mysimplebrowser.MainActivity">
  13.  
  14.  
  15.     <WebView
  16.         android:id="@+id/webView"
  17.         android:layout_width="match_parent"
  18.         android:layout_height="match_parent"
  19.         android:layout_alignParentStart="true"
  20.         android:layout_alignParentTop="true"
  21.         android:layout_marginTop="72dp"/>
  22.  
  23.     <LinearLayout
  24.         android:layout_width="match_parent"
  25.         android:layout_height="wrap_content"
  26.         android:orientation="horizontal"
  27.         android:layout_alignParentLeft="true"
  28.         android:layout_alignParentStart="true"
  29.         >
  30.  
  31.  
  32.         <EditText
  33.             android:id="@+id/urlText"
  34.             android:layout_width="0dp"
  35.             android:layout_weight="1"
  36.             android:layout_height="match_parent"
  37.             android:ems="10"
  38.             android:hint="Ketik URL Disini"
  39.             android:inputType="text|textPersonName"
  40.             android:text="http://www."/>
  41.  
  42.         <Button
  43.             android:id="@+id/buttonGo"
  44.             android:layout_width="wrap_content"
  45.             android:layout_height="wrap_content"
  46.             android:layout_alignBaseline="@+id/urlText"
  47.             android:layout_alignBottom="@+id/urlText"
  48.             android:layout_alignParentEnd="true"
  49.             android:layout_marginEnd="16dp"
  50.             android:onClick="goToURL"
  51.             android:text="GO"/>
  52.  
  53.     </LinearLayout>
  54. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement