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"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="8dp"
- tools:context=".FormActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:orientation="horizontal">
- <EditText
- android:id="@+id/inputNamaDepan"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Nama Depan" />
- <EditText
- android:id="@+id/inputNamaBelakang"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Nama Belakang" />
- </LinearLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/inputNoHp"
- android:inputType="number"
- android:maxLength="12"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:hint="No Hp" />
- </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="8dp"
- 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/spinnerJenjang"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:entries="@array/jenjang" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hobi" />
- <CheckBox
- android:id="@+id/cbMembaca"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Membaca" />
- <CheckBox
- android:id="@+id/cbMenulis"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Menulis" />
- <CheckBox
- android:id="@+id/cbMenggambar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- 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="150dp"
- android:layout_marginBottom="8dp"
- android:gravity="start"
- 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:text="Simpan" />
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement