Advertisement
Darsiwan

Untitled

Aug 9th, 2016
73,904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 4.46 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.                android:paddingBottom="@dimen/activity_vertical_margin"
  6.                android:paddingLeft="@dimen/activity_horizontal_margin"
  7.                android:paddingRight="@dimen/activity_horizontal_margin"
  8.                android:paddingTop="@dimen/activity_vertical_margin"
  9.                tools:context=".BuatBiodata" >
  10.  
  11.     <EditText
  12.        android:id="@+id/editText1"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content"
  15.        android:layout_alignLeft="@+id/textView1"
  16.        android:layout_below="@+id/textView1"
  17.        android:inputType="number"
  18.        android:maxLength="10">
  19.  
  20.         <requestFocus />
  21.     </EditText>
  22.  
  23.     <TextView
  24.        android:id="@+id/textView1"
  25.        android:layout_width="wrap_content"
  26.        android:layout_height="wrap_content"
  27.        android:layout_alignParentLeft="true"
  28.        android:layout_alignParentTop="true"
  29.        android:text="Nomor" />
  30.  
  31.     <TextView
  32.        android:id="@+id/textView2"
  33.        android:layout_width="wrap_content"
  34.        android:layout_height="wrap_content"
  35.        android:layout_alignLeft="@+id/editText1"
  36.        android:layout_below="@+id/editText1"
  37.        android:layout_marginTop="10dp"
  38.        android:text="Nama" />
  39.  
  40.     <EditText
  41.        android:id="@+id/editText2"
  42.        android:layout_width="match_parent"
  43.        android:layout_height="wrap_content"
  44.        android:layout_alignLeft="@+id/textView2"
  45.        android:layout_below="@+id/textView2"
  46.        android:inputType="text"
  47.        android:maxLength="20"/>
  48.  
  49.     <TextView
  50.        android:id="@+id/textView3"
  51.        android:layout_width="wrap_content"
  52.        android:layout_height="wrap_content"
  53.        android:layout_alignLeft="@+id/editText2"
  54.        android:layout_below="@+id/editText2"
  55.        android:layout_marginTop="10dp"
  56.        android:text="Tanggal Lahir" />
  57.  
  58.     <EditText
  59.        android:id="@+id/editText3"
  60.        android:layout_width="match_parent"
  61.        android:layout_height="wrap_content"
  62.        android:layout_alignLeft="@+id/textView3"
  63.        android:layout_below="@+id/textView3"
  64.        android:inputType="date"/>
  65.  
  66.     <TextView
  67.        android:id="@+id/textView4"
  68.        android:layout_width="wrap_content"
  69.        android:layout_height="wrap_content"
  70.        android:layout_alignLeft="@+id/editText3"
  71.        android:layout_below="@+id/editText3"
  72.        android:layout_marginTop="10dp"
  73.        android:text="Jenis Kelamin" />
  74.  
  75.     <EditText
  76.        android:id="@+id/editText4"
  77.        android:layout_width="match_parent"
  78.        android:layout_height="wrap_content"
  79.        android:layout_alignLeft="@+id/textView4"
  80.        android:layout_below="@+id/textView4"
  81.        android:inputType="text"
  82.        android:maxLength="1"
  83.        android:hint="L atau P"/>
  84.  
  85.     <TextView
  86.        android:id="@+id/textView5"
  87.        android:layout_width="wrap_content"
  88.        android:layout_height="wrap_content"
  89.        android:layout_alignLeft="@+id/editText4"
  90.        android:layout_below="@+id/editText4"
  91.        android:layout_marginTop="10dp"
  92.        android:text="Alamat" />
  93.  
  94.     <EditText
  95.        android:id="@+id/editText5"
  96.        android:layout_width="match_parent"
  97.        android:layout_height="wrap_content"
  98.        android:layout_alignLeft="@+id/textView5"
  99.        android:layout_below="@+id/textView5"
  100.        android:maxLength="100"
  101.        android:inputType="text"/>
  102.  
  103.     <Button
  104.        android:id="@+id/button1"
  105.        android:layout_width="wrap_content"
  106.        android:layout_height="wrap_content"
  107.        android:layout_alignLeft="@+id/editText5"
  108.        android:layout_alignParentBottom="true"
  109.        style="?android:attr/borderlessButtonStyle"
  110.        android:drawableLeft="@drawable/ic_done"
  111.        android:text="Simpan" />
  112.  
  113.     <Button
  114.        android:id="@+id/button2"
  115.        android:layout_width="wrap_content"
  116.        android:layout_height="wrap_content"
  117.        android:text="Kembali"
  118.        style="?android:attr/borderlessButtonStyle"
  119.        android:drawableLeft="@drawable/ic_arrow"
  120.        android:layout_alignParentBottom="true"
  121.        android:layout_alignRight="@+id/editText5"
  122.        android:layout_alignEnd="@+id/editText5" />
  123.  
  124. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement