From b35677b7273c876a0ad7cb52f06f4ccf40d96e10 Mon Sep 17 00:00:00 2001 From: Deep Vora Date: Mon, 13 Jan 2025 17:51:46 -0500 Subject: [PATCH 1/2] added more UI changes --- app/src/main/res/color/toggle_text_color.xml | 5 + .../drawable/bg_submission_toggle_button.xml | 14 ++ .../main/res/drawable/submission_toggle.xml | 9 ++ .../res/layout/fragment_my_submission.xml | 140 ++++++++++++------ 4 files changed, 120 insertions(+), 48 deletions(-) create mode 100644 app/src/main/res/color/toggle_text_color.xml create mode 100644 app/src/main/res/drawable/bg_submission_toggle_button.xml create mode 100644 app/src/main/res/drawable/submission_toggle.xml diff --git a/app/src/main/res/color/toggle_text_color.xml b/app/src/main/res/color/toggle_text_color.xml new file mode 100644 index 0000000000..3f993e5998 --- /dev/null +++ b/app/src/main/res/color/toggle_text_color.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable/bg_submission_toggle_button.xml b/app/src/main/res/drawable/bg_submission_toggle_button.xml new file mode 100644 index 0000000000..fbb8fd0f73 --- /dev/null +++ b/app/src/main/res/drawable/bg_submission_toggle_button.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/submission_toggle.xml b/app/src/main/res/drawable/submission_toggle.xml new file mode 100644 index 0000000000..8ae1811f43 --- /dev/null +++ b/app/src/main/res/drawable/submission_toggle.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/app/src/main/res/layout/fragment_my_submission.xml b/app/src/main/res/layout/fragment_my_submission.xml index 4cc2afc56a..ca443b121e 100644 --- a/app/src/main/res/layout/fragment_my_submission.xml +++ b/app/src/main/res/layout/fragment_my_submission.xml @@ -2,6 +2,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" android:background="@color/secondary_bg" tools:context=".ui.submission.MySubmissionFragment"> @@ -9,67 +10,110 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> + + + + + + android:gravity="center_horizontal" + android:orientation="vertical" + android:padding="10dp"> - - - - - + android:orientation="horizontal" + android:gravity="center" + android:background="@drawable/submission_toggle" + android:padding="10dp"> - + - + + + - - + android:layout_marginTop="16dp" + android:textColorHint="@color/hint_color"> - + + + + + Date: Tue, 14 Jan 2025 16:05:40 -0500 Subject: [PATCH 2/2] removed additional changes --- .../res/layout/fragment_my_submission.xml | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/app/src/main/res/layout/fragment_my_submission.xml b/app/src/main/res/layout/fragment_my_submission.xml index ca443b121e..41262304f5 100644 --- a/app/src/main/res/layout/fragment_my_submission.xml +++ b/app/src/main/res/layout/fragment_my_submission.xml @@ -10,42 +10,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> - - - - - -