Advertisement
farshazizi

Latihan Coffee bagian XML

Nov 18th, 2017
1,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 3.86 KB | None | 0 0
  1. <LinearLayout
  2.        android:layout_width="match_parent"
  3.        android:layout_height="wrap_content">
  4.  
  5.         <TextView
  6.            android:layout_width="120dp"
  7.            android:layout_height="wrap_content"
  8.            android:text="Nama"
  9.            android:textSize="24sp"
  10.            android:textColor="@color/hitam"/>
  11.  
  12.         <EditText
  13.            android:id="@+id/edit_nama"
  14.            android:layout_width="match_parent"
  15.            android:layout_height="wrap_content"
  16.            android:text=""
  17.            android:textSize="24sp"
  18.            android:hint="Isi Nama Anda"/>
  19.     </LinearLayout>
  20.  
  21.     <LinearLayout
  22.            android:layout_width="match_parent"
  23.            android:layout_height="wrap_content">
  24.  
  25.         <TextView
  26.            android:layout_width="120dp"
  27.            android:layout_height="wrap_content"
  28.            android:text="Jenis Kelamin"
  29.            android:textSize="24sp"
  30.            android:textColor="@color/hitam"/>
  31.  
  32.         <RadioGroup
  33.            android:id="@+id/rg_jk"
  34.            android:layout_width="match_parent"
  35.            android:layout_height="wrap_content">
  36.  
  37.             <RadioButton
  38.                android:id="@+id/rb_laki"
  39.                android:layout_width="wrap_content"
  40.                android:layout_height="wrap_content"
  41.                android:text="Laki-laki"/>
  42.  
  43.             <RadioButton
  44.                android:id="@+id/rb_perempuan"
  45.                android:layout_width="wrap_content"
  46.                android:layout_height="wrap_content"
  47.                android:text="Perempuan"/>
  48.         </RadioGroup>
  49.  
  50.     </LinearLayout>
  51.  
  52.     <TextView
  53.        android:layout_width="match_parent"
  54.        android:layout_height="wrap_content"
  55.        android:gravity="center"
  56.        android:text="Quantity Coffee"
  57.        android:textSize="24sp"
  58.        android:textColor="@color/hitam"/>
  59.  
  60.     <LinearLayout
  61.        android:layout_width="match_parent"
  62.        android:layout_height="wrap_content">
  63.  
  64.         <Button
  65.            android:id="@+id/btn_kurang"
  66.            android:layout_width="wrap_content"
  67.            android:layout_height="wrap_content"
  68.            android:layout_weight="1"
  69.            android:text="-"
  70.            android:onClick="kurang"
  71.            tools:ignore="OnClick" />
  72.  
  73.         <TextView
  74.            android:id="@+id/txt_qty"
  75.            android:layout_width="wrap_content"
  76.            android:layout_height="wrap_content"
  77.            android:layout_weight="1"
  78.            android:gravity="center"
  79.            android:text="0"
  80.            android:textSize="24sp"
  81.            android:onClick="tampil"
  82.            tools:ignore="OnClick" />
  83.  
  84.         <Button
  85.            android:id="@+id/btn_tambah"
  86.            android:layout_width="wrap_content"
  87.            android:layout_height="wrap_content"
  88.            android:layout_weight="1"
  89.            android:text="+"
  90.            android:onClick="tambah"
  91.            tools:ignore="OnClick" />
  92.     </LinearLayout>
  93.  
  94.     <Button
  95.        android:id="@+id/btn_submit"
  96.        android:layout_width="match_parent"
  97.        android:layout_height="wrap_content"
  98.        android:text="Submit"/>
  99.  
  100.     <TextView
  101.        android:id="@+id/txt_cetakNama"
  102.        android:layout_width="match_parent"
  103.        android:layout_height="wrap_content"
  104.        android:text=""
  105.        android:textSize="24sp"
  106.        android:textColor="@color/hitam"/>
  107.  
  108.     <TextView
  109.        android:id="@+id/txt_cetakJk"
  110.        android:layout_width="match_parent"
  111.        android:layout_height="wrap_content"
  112.        android:text=""
  113.        android:textSize="24sp"
  114.        android:textColor="@color/hitam"/>
  115.  
  116.     <TextView
  117.        android:id="@+id/txt_cetakQty"
  118.        android:layout_width="match_parent"
  119.        android:layout_height="wrap_content"
  120.        android:text=""
  121.        android:textSize="24sp"
  122.        android:textColor="@color/hitam"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement