Advertisement
Guest User

activity_main.xml

a guest
Mar 30th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.54 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.     xmlns:tools="http://schemas.android.com/tools"
  3.     android:layout_width="match_parent"
  4.     android:layout_height="match_parent">
  5.    
  6.     <LinearLayout
  7.         android:id="@+id/linearLayout1"
  8.         android:layout_width="wrap_content"
  9.         android:layout_height="wrap_content"
  10.         android:layout_alignParentLeft="true"
  11.         android:layout_alignParentRight="true"
  12.         android:layout_alignParentTop="true">
  13.         <TextView
  14.             android:id="@+id/textView1"
  15.             android:layout_width="match_parent"
  16.             android:layout_height="wrap_content"
  17.             android:gravity="center"
  18.             android:text="Form Login"
  19.             android:textAppearance="?android:attr/textAppearanceMedium" />
  20.     </LinearLayout>
  21.    
  22.     <LinearLayout
  23.         android:id="@+id/linearLayout2"
  24.         android:layout_width="wrap_content"
  25.         android:layout_height="wrap_content"
  26.         android:layout_alignParentLeft="true"
  27.         android:layout_alignParentRight="true"
  28.         android:layout_below="@+id/linearLayout1"
  29.         android:orientation="vertical">
  30.        
  31.         <TextView
  32.             android:id="@+id/textView2"
  33.             android:layout_width="match_parent"
  34.             android:layout_height="wrap_content"
  35.             android:text="User Name" />
  36.         <EditText
  37.             android:id="@+id/userNameEditText"
  38.             android:layout_width="match_parent"
  39.             android:layout_height="wrap_content">
  40.             <requestFocus/>
  41.         </EditText>
  42.     </LinearLayout>
  43.    
  44.     <LinearLayout
  45.         android:id="@+id/linearLayout3"
  46.         android:layout_width="wrap_content"
  47.         android:layout_height="wrap_content"
  48.         android:layout_alignParentLeft="true"
  49.         android:layout_alignParentRight="true"
  50.         android:layout_below="@+id/linearLayout2"
  51.         android:orientation="vertical">
  52.        
  53.         <TextView
  54.             android:id="@+id/textView3"
  55.             android:layout_width="match_parent"
  56.             android:layout_height="wrap_content"
  57.             android:text="Password" />
  58.        
  59.         <EditText
  60.             android:id="@+id/passwordEditText"
  61.             android:layout_width="match_parent"
  62.             android:layout_height="wrap_content"
  63.             android:inputType="textPassword" />
  64.     </LinearLayout>
  65.    
  66.     <LinearLayout
  67.         android:layout_width="wrap_content"
  68.         android:layout_height="wrap_content"
  69.         android:layout_alignParentLeft="true"
  70.         android:layout_alignParentRight="true"
  71.         android:layout_below="@+id/linearLayout3">
  72.        
  73.         <Button
  74.             android:id="@+id/loginButton"
  75.             android:layout_width="wrap_content"
  76.             android:layout_height="wrap_content"
  77.             android:text="Login"/>
  78.         <Button
  79.             android:id="@+id/tutupButton"
  80.             android:layout_width="wrap_content"
  81.             android:layout_height="wrap_content"
  82.             android:text="Tutup"/>
  83.     </LinearLayout>
  84. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement