diff --git a/app/src/main/res/layout/fragment_transactions.xml b/app/src/main/res/layout/fragment_transactions.xml index d829a917593c1f7ae3d2d3cf7ad7d411c36485ac..dc2177f24fecd432a0de83867f49712d813cac25 100644 --- a/app/src/main/res/layout/fragment_transactions.xml +++ b/app/src/main/res/layout/fragment_transactions.xml @@ -2,8 +2,8 @@ <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="16dp"> + android:padding="16dp" + android:orientation="vertical"> <TextView android:layout_width="wrap_content" @@ -12,7 +12,10 @@ <EditText android:id="@+id/editText_judul" 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 android:layout_width="wrap_content" @@ -21,7 +24,10 @@ <EditText android:id="@+id/editText_nominal" 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 android:layout_width="wrap_content" @@ -30,7 +36,10 @@ <EditText android:id="@+id/editText_kategori" 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 android:layout_width="wrap_content" @@ -39,12 +48,15 @@ <EditText android:id="@+id/editText_lokasi" 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 android:id="@+id/button_simpan" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/button_save" /> + android:text="@string/button_simpan" /> </LinearLayout> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ea85b64869f4a8d893bdbf48c7155c2353c9a8ec..a238740602ff63a2bf9ab121221d1f8573851554 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -14,9 +14,14 @@ <string name="invalid_username">Not a valid email</string> <string name="invalid_password">Password must be >5 characters</string> <string name="login_failed">"Login failed"</string> - <string name="textfield_label_judul">"Judul"</string> - <string name="textfield_label_nominal">"Nominal"</string> - <string name="textfield_label_kategori">"Kategori"</string> - <string name="textfield_label_lokasi">"Lokasi"</string> - <string name="button_save">"Simpan"</string> + <!-- Strings related to transaction --> + <string name="textfield_label_judul">Judul</string> + <string name="textfield_label_nominal">Nominal</string> + <string name="textfield_label_kategori">Kategori</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> \ No newline at end of file