Advertisement
Guest User

main.xml

a guest
Jul 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.77 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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.    app:layout_behavior="@string/appbar_scrolling_view_behavior"
  8.    tools:context="com.fachryansyah.tabungan.MainActivity"
  9.    tools:showIn="@layout/app_bar_main">
  10.  
  11.     <!--<ImageView-->
  12.         <!--android:src="@mipmap/ic_launcher"-->
  13.         <!--android:layout_width="match_parent"-->
  14.         <!--android:layout_height="200dp" />-->
  15.  
  16.     <ScrollView
  17.        android:layout_width="match_parent"
  18.        android:layout_height="match_parent">
  19.  
  20.         <RelativeLayout
  21.            android:padding="16dp"
  22.            android:layout_width="match_parent"
  23.            android:layout_height="match_parent">
  24.  
  25.             <TextView
  26.                android:id="@+id/lblNama"
  27.                android:textSize="20sp"
  28.                android:text="Nama Peserta Didik"
  29.                android:layout_width="wrap_content"
  30.                android:layout_height="wrap_content" />
  31.  
  32.             <EditText
  33.                android:id="@+id/txtNama"
  34.                android:layout_below="@id/lblNama"
  35.                android:layout_width="match_parent"
  36.                android:layout_height="wrap_content" />
  37.  
  38.             <TextView
  39.                android:id="@+id/lblTanggal"
  40.                android:text="Tanggal lahir"
  41.                android:layout_marginTop="12dp"
  42.                android:layout_marginBottom="6dp"
  43.                android:textSize="20sp"
  44.                android:layout_below="@id/txtNama"
  45.                android:layout_width="wrap_content"
  46.                android:layout_height="wrap_content" />
  47.  
  48.             <DatePicker
  49.                android:datePickerMode="calendar"
  50.                android:id="@+id/dateTanggal"
  51.                android:layout_below="@id/lblTanggal"
  52.                android:layout_width="match_parent"
  53.                android:layout_height="wrap_content"></DatePicker>
  54.  
  55.             <TextView
  56.                android:id="@+id/lblNisn"
  57.                android:textSize="20sp"
  58.                android:text="NIPD/NISN"
  59.                android:layout_below="@id/dateTanggal"
  60.                android:layout_width="wrap_content"
  61.                android:layout_height="wrap_content" />
  62.  
  63.             <EditText
  64.                android:id="@+id/txtNisn"
  65.                android:layout_below="@id/lblNisn"
  66.                android:layout_width="match_parent"
  67.                android:layout_height="wrap_content" />
  68.  
  69.             <TextView
  70.                android:id="@+id/lblKelas"
  71.                android:layout_below="@id/txtNisn"
  72.                android:textSize="20sp"
  73.                android:text="Kelas / Tingkat"
  74.                android:layout_width="wrap_content"
  75.                android:layout_height="wrap_content" />
  76.  
  77.             <EditText
  78.                android:id="@+id/txtKelas"
  79.                android:layout_below="@id/lblKelas"
  80.                android:layout_width="match_parent"
  81.                android:layout_height="wrap_content" />
  82.  
  83.             <TextView
  84.                android:id="@+id/lblAlamat"
  85.                android:layout_below="@id/txtKelas"
  86.                android:text="Alamat"
  87.                android:textSize="20sp"
  88.                android:layout_width="wrap_content"
  89.                android:layout_height="wrap_content" />
  90.  
  91.             <EditText
  92.                android:id="@+id/txtAlamat"
  93.                android:layout_below="@id/lblAlamat"
  94.                android:layout_width="match_parent"
  95.                android:layout_height="wrap_content" />
  96.         </RelativeLayout>
  97.     </ScrollView>
  98. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement