Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="8dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="30dp"
- android:layout_marginBottom="16dp"
- android:orientation="horizontal">
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <EditText
- android:id="@+id/inputNamaDepan"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Nama Depan" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <EditText
- android:id="@+id/inputNamaBelakang"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Nama Belakang"
- />
- </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/inputNoHp"
- android:inputType="phone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:hint="No. Hp" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/inputEmail"
- android:inputType="textEmailAddress"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:hint="Email" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:clickable="true"
- android:id="@+id/inputTglLahir"
- android:focusable="false"
- android:inputType="none"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:hint="Tanggal Lahir" />
- </com.google.android.material.textfield.TextInputLayout>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Gender" />
- <RadioGroup
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:orientation="horizontal">
- <RadioButton
- android:id="@+id/rbPria"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Pria" />
- <RadioButton
- android:id="@+id/rbWanita"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Wanita" />
- </RadioGroup>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Jenjang" />
- <Spinner
- android:id="@+id/spinner"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:entries="@array/jenjang" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hobi" />
- <CheckBox
- android:id="@+id/cbMenulis"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:text="Menulis" />
- <CheckBox
- android:id="@+id/cbMembaca"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:text="Membaca" />
- <CheckBox
- android:id="@+id/cbMenggambar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:text="Menggambar" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/inputAlamat"
- android:layout_width="match_parent"
- android:layout_height="100dp"
- android:layout_marginBottom="16dp"
- android:hint="Alamat" />
- </com.google.android.material.textfield.TextInputLayout>
- <Button
- android:id="@+id/btnSimpan"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:drawableLeft="@drawable/ic_save_black_24dp"
- android:text="Simpan" />
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement