alvinputrau

Layout Edit Text + Checkbox

Feb 1st, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.91 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     //generate by ALV
  4.    android:orientation="vertical" android:layout_width="match_parent"
  5.    android:layout_height="match_parent">
  6.  
  7.     <LinearLayout
  8.        android:layout_width="fill_parent"
  9.        android:layout_height="wrap_content"
  10.        android:textAlignment="center"
  11.        android:orientation="vertical">
  12.         <TextView
  13.            android:layout_width="fill_parent"
  14.            android:layout_height="fill_parent"
  15.            android:text="1101120185"
  16.            android:textSize="60px"
  17.            android:textColor="#ff0000"
  18.            android:textAlignment="center"
  19.            android:layout_weight="1"
  20.            android:paddingBottom="50px"/>
  21.         <LinearLayout
  22.            android:layout_width="fill_parent"
  23.            android:layout_height="wrap_content"
  24.            android:textAlignment="center"
  25.            android:paddingBottom="20px">
  26.             <TextView
  27.                android:layout_width="fill_parent"
  28.                android:layout_height="fill_parent"
  29.                android:layout_weight="2"
  30.                android:text="NAMA  :"
  31.                android:textSize="50px"
  32.                android:textColor="#000000"
  33.                android:layout_marginLeft="50px"/>
  34.             <EditText
  35.                android:layout_width="fill_parent"
  36.                android:layout_height="fill_parent"
  37.                android:layout_weight="1"
  38.                android:layout_marginLeft="50px"
  39.                android:layout_marginRight="50px"
  40.                android:id="@+id/nama"/>
  41.         </LinearLayout>
  42.         <LinearLayout
  43.            android:layout_width="fill_parent"
  44.            android:layout_height="wrap_content"
  45.            android:textAlignment="center"
  46.            android:paddingBottom="20px">
  47.             <TextView
  48.                android:layout_width="fill_parent"
  49.                android:layout_height="fill_parent"
  50.                android:layout_weight="2"
  51.                android:text="NIM      :"
  52.                android:textSize="50px"
  53.                android:textColor="#000000"
  54.                android:layout_marginLeft="50px"/>
  55.             <EditText
  56.                android:layout_width="fill_parent"
  57.                android:layout_height="fill_parent"
  58.                android:layout_weight="1"
  59.                android:layout_marginLeft="50px"
  60.                android:layout_marginRight="50px"
  61.                android:id="@+id/nim"/>
  62.         </LinearLayout>
  63.         <LinearLayout
  64.            android:layout_width="fill_parent"
  65.            android:layout_height="wrap_content"
  66.            android:textAlignment="center"
  67.            android:paddingBottom="20px">
  68.             <Button
  69.            android:layout_width="fill_parent"
  70.            android:layout_height="fill_parent"
  71.            android:layout_weight="1"
  72.            android:text="PRESS"
  73.            android:textSize="50px"
  74.                android:layout_marginRight="100px"
  75.                android:layout_marginLeft="100px"
  76.            android:textColor="#000000"
  77.                android:id="@+id/press"
  78.                android:textAlignment="center"/>
  79.         </LinearLayout>
  80.         <LinearLayout
  81.        android:layout_width="fill_parent"
  82.        android:layout_height="wrap_content"
  83.        android:textAlignment="center"
  84.        android:paddingBottom="20px">
  85.             <CheckBox
  86.                android:layout_width="fill_parent"
  87.                android:layout_height="fill_parent"
  88.                android:text="Saya setuju untuk menekan tombol ini."
  89.                android:layout_marginLeft="100px"
  90.                android:layout_marginRight="100px"
  91.                android:layout_gravity="center"
  92.                android:textAlignment="center"
  93.                android:id="@+id/cek"
  94.                />
  95.     </LinearLayout>
  96.     </LinearLayout>
  97.  
  98. </LinearLayout>
Add Comment
Please, Sign In to add comment