Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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:layout_margin="16dp"
- tools:context=".FormActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <EditText
- android:id="@+id/et_nama_depan"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Nama depan"/>
- </com.google.android.material.textfield.TextInputLayout>
- <EditText
- android:id="@+id/et_nama_belakang"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Nama belakang"/>
- </LinearLayout>
- <EditText
- android:id="@+id/et_no_hp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="No HP"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Gender"/>
- <RadioGroup
- android:id="@+id/rg_gender"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <RadioButton
- android:id="@+id/rb_pria"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Pria"/>
- <RadioButton
- android:id="@+id/rb_wanita"
- 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/sp_jenjang"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hobi"/>
- <CheckBox
- android:id="@+id/cb_membaca"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Membaca"/>
- <CheckBox
- android:id="@+id/cb_menulis"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Menulis"/>
- <CheckBox
- android:id="@+id/cb_menggambar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Menggambar"/>
- <EditText
- android:id="@+id/et_alamat"
- android:layout_width="match_parent"
- android:layout_height="90dp"
- android:gravity="top"
- android:hint="Alamat"/>
- <Button
- android:id="@+id/btn_simpan"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Simpan"/>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement