diff --git a/app/src/main/res/layout-land/activity_main.xml b/app/src/main/res/layout-land/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..7de35322adf041fa063c1f6d0be3967b963c67d7 --- /dev/null +++ b/app/src/main/res/layout-land/activity_main.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout 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:background="@color/primary_color_4" + tools:context=".MainActivity"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + > + + <com.google.android.material.navigationrail.NavigationRailView + android:id="@+id/navigation_view" + android:paddingTop="12dp" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:background="@color/secondary_color_2" + app:itemBackground="@color/secondary_color_2" + app:itemIconTint="@drawable/nav_item_color_selected" + app:itemTextColor="@color/primary_color_1" + app:labelVisibilityMode="labeled" + app:itemPaddingBottom="36dp" + app:menu="@menu/side_nav_menu" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + + <FrameLayout + android:id="@+id/header_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <FrameLayout + android:id="@+id/frame_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + </LinearLayout> + + </LinearLayout> + +</RelativeLayout> \ No newline at end of file diff --git a/app/src/main/res/layout-land/fragment_graphs.xml b/app/src/main/res/layout-land/fragment_graphs.xml new file mode 100644 index 0000000000000000000000000000000000000000..1536bad50100b323228d9259f2b0f3fd383923fa --- /dev/null +++ b/app/src/main/res/layout-land/fragment_graphs.xml @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + tools:context=".Graphs"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <LinearLayout + android:id="@+id/graph_container" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_marginHorizontal="12dp" + android:layout_marginBottom="8dp"> + + <com.github.mikephil.charting.charts.PieChart + android:id="@+id/pie_chart" + android:layout_width="match_parent" + android:layout_height="match_parent"> + </com.github.mikephil.charting.charts.PieChart> + + </LinearLayout> + + <LinearLayout + android:id="@+id/constraintLayout" + android:layout_width="200dp" + android:layout_height="match_parent" + android:orientation="vertical" + android:gravity="center" + android:layout_marginRight="12dp" + > + + <LinearLayout + android:id="@+id/containerIncome" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/background_rounded_purple" + android:paddingVertical="12dp" + android:paddingHorizontal="12dp" + android:layout_marginBottom="40dp" + > + + <ImageView + android:id="@+id/incomeIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="4dp" + android:src="@drawable/income" + android:layout_gravity="center_vertical" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/incomeText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:text="Income" + android:textSize="16sp"/> + + <TextView + android:id="@+id/incomeValueText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:text="Rp" + android:textSize="16sp" + android:textStyle="bold"/> + </LinearLayout> + + + </LinearLayout> + + <LinearLayout + android:id="@+id/containerExpense" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/background_rounded_peach" + android:paddingVertical="12dp" + android:paddingHorizontal="12dp" + > + + <ImageView + android:id="@+id/expenseIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/expense" + android:layout_marginStart="4dp" + android:layout_gravity="center_vertical" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/expenseText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:text="Expense" + android:textSize="16sp"/> + + <TextView + android:id="@+id/expenseValueText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:text="Rp" + android:textSize="16sp" + android:textStyle="bold"/> + </LinearLayout> + + + </LinearLayout> + + </LinearLayout> + + + </LinearLayout> + +</FrameLayout> \ No newline at end of file diff --git a/app/src/main/res/layout-land/fragment_settings.xml b/app/src/main/res/layout-land/fragment_settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..65af9cafccf0f2e866469a2827ef12e69769bd8c --- /dev/null +++ b/app/src/main/res/layout-land/fragment_settings.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".Settings"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginHorizontal="16dp" + android:background="@drawable/rounded_background_gradient" + android:orientation="horizontal" + android:padding="16dp" + android:gravity="center"> + + <LinearLayout + android:layout_width="240dp" + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="center"> + + <ImageView + android:id="@+id/iv_settings" + android:layout_width="140dp" + android:layout_height="140dp" + android:layout_centerInParent="true" + android:layout_marginTop="20dp" + android:src="@drawable/profile_icon" /> + + <TextView + android:id="@+id/emailTextView" + android:layout_marginHorizontal="16dp" + android:layout_marginVertical="16dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="123@gmail.com" + android:textColor="@color/primary1" + android:textAlignment="center"/> + </LinearLayout> + + + <ScrollView + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="center"> + + <Button + android:id="@+id/saveTransactionButton" + android:layout_marginHorizontal="16dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/rounded_background_transparent" + android:text="Save Transaction List" + android:layout_marginVertical="10dp" + android:textColor="@color/primary1" /> + + <Button + android:id="@+id/sendTransactionButton" + android:layout_marginHorizontal="16dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/rounded_background_transparent" + android:text="Send Transaction List" + android:layout_marginVertical="10dp" + android:textColor="@color/primary1" /> + + <Button + android:id="@+id/randomizeTransactionButton" + android:layout_marginHorizontal="16dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/rounded_background_transparent" + android:text="Randomize" + android:layout_marginVertical="10dp" + android:textColor="@color/primary1" /> + + <Button + android:id="@+id/logoutButton" + android:layout_marginHorizontal="16dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:drawableStart="@drawable/ic_launcher_foreground" + android:background="@drawable/rounded_background_transparent" + android:text="Logout" + android:layout_marginVertical="10dp" + android:textColor="@color/primary1" /> + + </LinearLayout> + </ScrollView> + + </LinearLayout> +</FrameLayout> \ No newline at end of file diff --git a/app/src/main/res/layout-land/fragment_transaction.xml b/app/src/main/res/layout-land/fragment_transaction.xml new file mode 100644 index 0000000000000000000000000000000000000000..ef8b5a5b559d95cfe047a58fa7fe1176cb4a7e16 --- /dev/null +++ b/app/src/main/res/layout-land/fragment_transaction.xml @@ -0,0 +1,144 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout 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" + tools:context=".Transaction"> + + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="8dp"> + + <LinearLayout + android:id="@+id/expense_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_marginHorizontal="16dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/rounded_income" + android:padding="16dp" + android:orientation="horizontal" + android:layout_marginRight="8dp"> + + <ImageView + android:layout_width="32dp" + android:layout_height="32dp" + android:src="@drawable/income" + android:scaleType="fitCenter" + android:layout_gravity="center_vertical" + android:layout_marginRight="12dp" + /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Income" + android:textColor="@color/primary_color_1" + android:textStyle="normal" + android:textSize="16dp" + /> + + <TextView + android:id="@+id/amount_income" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/primary_color_1" + android:textStyle="bold" + android:textSize="16dp" + /> + </LinearLayout> + + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/rounded_expense" + android:padding="16dp" + android:orientation="horizontal" + android:layout_marginLeft="8dp"> + + <ImageView + android:layout_width="32dp" + android:layout_height="32dp" + android:src="@drawable/expense" + android:scaleType="fitCenter" + android:layout_gravity="center_vertical" + android:layout_marginRight="12dp" + /> + + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Expense" + android:textColor="@color/primary_color_1" + android:textStyle="normal" + android:textSize="16dp" + /> + + <TextView + android:id="@+id/amount_expense" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/primary_color_1" + android:textStyle="bold" + android:textSize="16dp" + /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Recently Transaction" + android:textSize="20dp" + android:textStyle="bold" + android:layout_marginTop="16dp" + android:textColor="@color/primary_color_1"/> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvTransaction" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingBottom="48dp"> + </androidx.recyclerview.widget.RecyclerView> + </LinearLayout> + </ScrollView> + + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/fabAdd" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + app:srcCompat="@drawable/baseline_add_circle_24" + app:backgroundTint="@android:color/transparent" + app:fabSize="auto" + app:maxImageSize="60dp" + app:elevation="0dp" + app:layout_anchorGravity="bottom|end"/> + +</RelativeLayout>