diff --git a/app/src/main/res/layout-land/fragment_transactions.xml b/app/src/main/res/layout-land/fragment_transactions.xml new file mode 100644 index 0000000000000000000000000000000000000000..4d5f58f9e8239ffa988ab7690cc64195ed39c42a --- /dev/null +++ b/app/src/main/res/layout-land/fragment_transactions.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout 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:layout_marginTop="0dp" + android:background="@drawable/glow_effect" + tools:context=".ui.transactions.TransactionsFragment"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvTransaction" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="80dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="1.0" /> + + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/fabAddTransaction" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:backgroundTint="@color/gold" + android:contentDescription="@string/add_transaction_button" + android:src="@drawable/plus" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.954" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.82" /> + +</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_transactions.xml b/app/src/main/res/layout/fragment_transactions.xml index a152975f58e034d1dad631d2918fc9cbd9159de0..6d2b46dd2684fb2022ccc2f2bec96b20a4b0f6dc 100644 --- a/app/src/main/res/layout/fragment_transactions.xml +++ b/app/src/main/res/layout/fragment_transactions.xml @@ -32,6 +32,7 @@ app:layout_constraintHorizontal_bias="0.954" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:layout_constraintVertical_bias="0.82" /> + app:layout_constraintVertical_bias="0.82" + android:contentDescription="@string/add_transaction_button" /> </androidx.constraintlayout.widget.ConstraintLayout> \ 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 f2ac74bf96999606a620fb83c53ab043960f370e..a9625dbb8bb0f24c65571e1659458296c05226e0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -36,4 +36,5 @@ <string name="add_transaction">Add Transaction</string> <string name="randomize_transaction">Randomize Transaction</string> <string name="currency">Rp</string> + <string name="add_transaction_button">Add Transaction Button</string> </resources> \ No newline at end of file