Baru_Berbagi

activity_main.xml

Oct 21st, 2020
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.94 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:app="http://schemas.android.com/apk/res-auto"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    android:paddingBottom="10dp"
  8.    android:paddingRight="10dp"
  9.    android:paddingLeft="10dp"
  10.    android:background="#6B7A80F8"
  11.    tools:context=".MainActivity">
  12.     <TextView
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content"
  15.        android:text="Ayam Goreng"
  16.        android:textSize="30dp"
  17.        android:textColor="#30395F"
  18.        android:gravity="center"
  19.        android:layout_marginBottom="10dp"/>
  20.     <ScrollView
  21.        android:layout_width="match_parent"
  22.        android:layout_height="match_parent">
  23. <LinearLayout
  24.    android:layout_width="match_parent"
  25.    android:layout_height="match_parent"
  26.    android:orientation="vertical"
  27.    android:background="#9F3D3C3C">
  28.     <TextView
  29.        android:layout_width="match_parent"
  30.        android:layout_height="wrap_content"
  31.        android:text="Nama :"
  32.        android:textColor="#FFFFFF"/>
  33.  
  34.     <EditText
  35.        android:id="@+id/edt_nama"
  36.        android:layout_width="match_parent"
  37.        android:layout_height="wrap_content"
  38.        android:layout_marginBottom="20dp"
  39.        android:gravity="center"
  40.        android:hint="Enter Text"
  41.        android:background="#F5F5F5"
  42.        android:textColor="#000000"/>
  43.  
  44.     <TextView
  45.        android:layout_width="match_parent"
  46.        android:layout_height="wrap_content"
  47.        android:text="Alamat :"
  48.        android:textColor="#FFFEFE"/>
  49.  
  50.     <EditText
  51.        android:id="@+id/edt_alamat"
  52.        android:layout_width="match_parent"
  53.        android:layout_height="wrap_content"
  54.        android:layout_marginBottom="20dp"
  55.        android:gravity="center"
  56.        android:hint="Enter Text"
  57.        android:background="#F5F5F5"
  58.        android:textColor="#000000"/>
  59.  
  60.     <TextView
  61.        android:layout_width="match_parent"
  62.        android:layout_height="wrap_content"
  63.        android:text="No HP/WA :"
  64.        android:textColor="#FFFEFE"/>
  65.  
  66.     <EditText
  67.        android:id="@+id/edt_nohp"
  68.        android:layout_width="match_parent"
  69.        android:layout_height="wrap_content"
  70.        android:layout_marginBottom="20dp"
  71.        android:gravity="center"
  72.        android:hint="Enter Text"
  73.        android:background="#F5F5F5"
  74.        android:textColor="#000000"/>
  75.  
  76.     <TextView
  77.        android:layout_width="wrap_content"
  78.        android:layout_height="wrap_content"
  79.        android:text="Pilihan Sambal :"
  80.        android:textColor="#FFFFFF"/>
  81.  
  82.     <CheckBox
  83.        android:id="@+id/cbx_tomat"
  84.        android:layout_width="wrap_content"
  85.        android:layout_height="wrap_content"
  86.        android:layout_marginLeft="20dp"
  87.        android:text="Sambal Tomat"
  88.        android:textColor="#FFFFFF"/>
  89.  
  90.     <CheckBox
  91.        android:id="@+id/cbx_bawang"
  92.        android:layout_width="wrap_content"
  93.        android:layout_height="wrap_content"
  94.        android:layout_marginLeft="20dp"
  95.        android:layout_marginBottom="20dp"
  96.        android:text="Sambal Bawang"
  97.        android:textColor="#FFFFFF"/>
  98.  
  99.     <TextView
  100.        android:layout_width="wrap_content"
  101.        android:layout_height="wrap_content"
  102.        android:layout_marginBottom="10dp"
  103.        android:text="Banyaknya Pesanan"
  104.        android:textColor="#FFFFFF"
  105.        android:layout_gravity="center"/>
  106.  
  107.     <LinearLayout
  108.        android:layout_width="wrap_content"
  109.        android:layout_height="wrap_content"
  110.        android:orientation="horizontal"
  111.        android:layout_gravity="center">
  112.  
  113.         <Button
  114.            android:layout_width="wrap_content"
  115.            android:layout_height="wrap_content"
  116.            android:layout_marginLeft="20dp"
  117.            android:onClick="tambah"
  118.            android:text="+"/>
  119.  
  120.         <TextView
  121.            android:id="@+id/txt_jumlah"
  122.            android:layout_width="wrap_content"
  123.            android:layout_height="wrap_content"
  124.            android:layout_marginLeft="20dp"
  125.            android:layout_marginRight="20dp"
  126.            android:background="#FFFFFF"
  127.            android:text="0"/>
  128.  
  129.         <Button
  130.            android:layout_width="wrap_content"
  131.            android:layout_height="wrap_content"
  132.            android:onClick="kurang"
  133.            android:text="-"/>
  134.     </LinearLayout>
  135.  
  136.     <TextView
  137.        android:layout_width="wrap_content"
  138.        android:layout_height="wrap_content"
  139.        android:layout_marginBottom="5dp"
  140.        android:layout_marginTop="20dp"
  141.        android:baselineAligned="false"
  142.        android:text="hasil"
  143.        android:textColor="#FFFFFF"
  144.        android:layout_gravity="center"/>
  145.  
  146.     <TextView
  147.        android:id="@+id/txt_hasil"
  148.        android:layout_width="wrap_content"
  149.        android:layout_height="wrap_content"
  150.        android:layout_marginLeft="20dp"
  151.        android:background="#F5F5F5"
  152.        android:text=""
  153.        android:textColor="#000000"
  154.        android:textSize="15sp"
  155.        android:layout_gravity="center"/>
  156.  
  157.     <TextView
  158.        android:id="@+id/txt_harga"
  159.        android:layout_width="wrap_content"
  160.        android:layout_height="wrap_content"
  161.        android:layout_marginBottom="20dp"
  162.        android:text=""
  163.        android:textColor="#FFFFFF"
  164.        android:textSize="25dp"/>
  165.  
  166.     <Button
  167.        android:layout_width="match_parent"
  168.        android:layout_height="wrap_content"
  169.        android:layout_gravity="center"
  170.        android:layout_marginBottom="10dp"
  171.        android:onClick="lihat"
  172.        android:text="Lihat Harga"/>
  173.  
  174.     <Button
  175.        android:id="@+id/btn_share"
  176.        android:layout_width="match_parent"
  177.        android:layout_height="wrap_content"
  178.        android:text="Pesan Lewat Gmail"/>
  179. </LinearLayout>
  180.     </ScrollView>
  181. </LinearLayout>
Add Comment
Please, Sign In to add comment