Skip to content
Snippets Groups Projects
Commit ec967c4c authored by rayhanp1402's avatar rayhanp1402
Browse files

feat: Improve transaction CRUD accessibility

parent 37a7a2d1
3 merge requests!13Release,!11proper save for gmail,!6Transaction
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:padding="16dp"
android:padding="16dp"> android:orientation="vertical">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
<EditText <EditText
android:id="@+id/editText_judul" android:id="@+id/editText_judul"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:autofillHints="judul"
android:hint="@string/hint_judul"
android:inputType="text" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -21,7 +24,10 @@ ...@@ -21,7 +24,10 @@
<EditText <EditText
android:id="@+id/editText_nominal" android:id="@+id/editText_nominal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:autofillHints="nominal"
android:hint="@string/hint_nominal"
android:inputType="numberDecimal" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -30,7 +36,10 @@ ...@@ -30,7 +36,10 @@
<EditText <EditText
android:id="@+id/editText_kategori" android:id="@+id/editText_kategori"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:autofillHints="kategori"
android:hint="@string/hint_kategori"
android:inputType="text" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -39,12 +48,15 @@ ...@@ -39,12 +48,15 @@
<EditText <EditText
android:id="@+id/editText_lokasi" android:id="@+id/editText_lokasi"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:hint="@string/hint_lokasi"
android:autofillHints="lokasi"
android:inputType="numberDecimal" />
<Button <Button
android:id="@+id/button_simpan" android:id="@+id/button_simpan"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/button_save" /> android:text="@string/button_simpan" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -14,9 +14,14 @@ ...@@ -14,9 +14,14 @@
<string name="invalid_username">Not a valid email</string> <string name="invalid_username">Not a valid email</string>
<string name="invalid_password">Password must be >5 characters</string> <string name="invalid_password">Password must be >5 characters</string>
<string name="login_failed">"Login failed"</string> <string name="login_failed">"Login failed"</string>
<string name="textfield_label_judul">"Judul"</string> <!-- Strings related to transaction -->
<string name="textfield_label_nominal">"Nominal"</string> <string name="textfield_label_judul">Judul</string>
<string name="textfield_label_kategori">"Kategori"</string> <string name="textfield_label_nominal">Nominal</string>
<string name="textfield_label_lokasi">"Lokasi"</string> <string name="textfield_label_kategori">Kategori</string>
<string name="button_save">"Simpan"</string> <string name="textfield_label_lokasi">Lokasi</string>
<string name="button_simpan">Simpan</string>
<string name="hint_judul">Enter Judul</string>
<string name="hint_nominal">Enter Nominal</string>
<string name="hint_kategori">Enter Kategori</string>
<string name="hint_lokasi">Enter Lokasi</string>
</resources> </resources>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment