Advertisement
gurumutant

SMIKFunBike - activity_main.xml

Sep 13th, 2017
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.66 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context="com.rplcoders.android.smikfunbike.MainActivity">
  8.  
  9.     <ScrollView
  10.        android:layout_width="368dp"
  11.        android:layout_height="495dp"
  12.        android:layout_marginRight="8dp"
  13.        app:layout_constraintRight_toRightOf="parent"
  14.        android:layout_marginLeft="16dp"
  15.        app:layout_constraintLeft_toLeftOf="parent"
  16.        app:layout_constraintTop_toTopOf="parent"
  17.        android:layout_marginTop="0dp">
  18.  
  19.         <LinearLayout
  20.            android:layout_width="match_parent"
  21.            android:layout_height="wrap_content"
  22.            android:orientation="vertical"
  23.            app:layout_constraintBottom_toBottomOf="parent"
  24.            app:layout_constraintLeft_toLeftOf="parent"
  25.            app:layout_constraintRight_toRightOf="parent"
  26.            app:layout_constraintTop_toTopOf="parent">
  27.  
  28.             <Button
  29.                android:id="@+id/btnInfo"
  30.                android:layout_width="match_parent"
  31.                android:layout_height="wrap_content"
  32.                android:onClick="aksiInfo"
  33.                android:text="Tentang SMIK FunBike" />
  34.  
  35.             <ImageView
  36.                android:id="@+id/imageView"
  37.                android:layout_width="match_parent"
  38.                android:layout_height="wrap_content"
  39.                app:srcCompat="@drawable/logo_smik_funbike" />
  40.  
  41.             <TextView
  42.                android:id="@+id/textView"
  43.                android:layout_width="match_parent"
  44.                android:layout_height="wrap_content"
  45.                android:text="Nama" />
  46.  
  47.             <EditText
  48.                android:id="@+id/edtNama"
  49.                android:layout_width="250dp"
  50.                android:layout_height="wrap_content"
  51.                android:ems="10"
  52.                android:hint="ketikkan nama Anda"
  53.                android:inputType="textPersonName" />
  54.  
  55.             <TextView
  56.                android:id="@+id/textView2"
  57.                android:layout_width="match_parent"
  58.                android:layout_height="wrap_content"
  59.                android:text="Alamat" />
  60.  
  61.             <EditText
  62.                android:id="@+id/edtAlamat"
  63.                android:layout_width="match_parent"
  64.                android:layout_height="wrap_content"
  65.                android:ems="10"
  66.                android:hint="ketikkan alamat Anda"
  67.                android:inputType="textMultiLine" />
  68.  
  69.             <TextView
  70.                android:id="@+id/textView3"
  71.                android:layout_width="match_parent"
  72.                android:layout_height="wrap_content"
  73.                android:text="Hobi" />
  74.  
  75.             <EditText
  76.                android:id="@+id/edtHobi"
  77.                android:layout_width="match_parent"
  78.                android:layout_height="wrap_content"
  79.                android:ems="10"
  80.                android:hint="ketikkan hobi Anda"
  81.                android:inputType="textPersonName" />
  82.  
  83.             <TextView
  84.                android:id="@+id/textView6"
  85.                android:layout_width="match_parent"
  86.                android:layout_height="wrap_content"
  87.                android:text="Biaya Pendaftaran : Rp. 20.000,-" />
  88.  
  89.             <TextView
  90.                android:id="@+id/textView4"
  91.                android:layout_width="match_parent"
  92.                android:layout_height="wrap_content"
  93.                android:text="Fasilitas tambahan" />
  94.  
  95.             <CheckBox
  96.                android:id="@+id/chkMakan"
  97.                android:layout_width="match_parent"
  98.                android:layout_height="wrap_content"
  99.                android:text="Makan Pagi (Rp. 10.000)" />
  100.  
  101.             <CheckBox
  102.                android:id="@+id/chkSnack"
  103.                android:layout_width="match_parent"
  104.                android:layout_height="wrap_content"
  105.                android:text="Snack (Rp. 5.000)" />
  106.  
  107.             <CheckBox
  108.                android:id="@+id/chkSepeda"
  109.                android:layout_width="match_parent"
  110.                android:layout_height="wrap_content"
  111.                android:text="Sewa sepeda (Rp. 15.000)" />
  112.  
  113.             <LinearLayout
  114.                android:layout_width="match_parent"
  115.                android:layout_height="wrap_content"
  116.                android:orientation="horizontal">
  117.  
  118.                 <Button
  119.                    android:id="@+id/btnKalkulasi"
  120.                    android:layout_width="wrap_content"
  121.                    android:layout_height="wrap_content"
  122.                    android:layout_gravity="right"
  123.                    android:layout_weight="1"
  124.                    android:onClick="aksiKalkulasi"
  125.                    android:text="KALKULASI" />
  126.  
  127.                 <Button
  128.                    android:id="@+id/btnSimpan"
  129.                    android:layout_width="wrap_content"
  130.                    android:layout_height="wrap_content"
  131.                    android:layout_gravity="right"
  132.                    android:layout_weight="1"
  133.                    android:onClick="aksiSimpan"
  134.                    android:text="SIMPAN" />
  135.  
  136.             </LinearLayout>
  137.  
  138.             <TextView
  139.                android:id="@+id/txtHasil"
  140.                android:layout_width="match_parent"
  141.                android:layout_height="wrap_content"
  142.                android:layout_weight="0.01" />
  143.  
  144.         </LinearLayout>
  145.     </ScrollView>
  146.  
  147. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement