diff --git a/app/src/main/res/drawable/ic_account.xml b/app/src/main/res/drawable/ic_account.xml new file mode 100644 index 0000000..1e24cf3 --- /dev/null +++ b/app/src/main/res/drawable/ic_account.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_filter.xml b/app/src/main/res/drawable/ic_filter.xml new file mode 100644 index 0000000..22ac741 --- /dev/null +++ b/app/src/main/res/drawable/ic_filter.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/layout/activity_add_report.xml b/app/src/main/res/layout/activity_add_report.xml index 5c9b783..5798f56 100644 --- a/app/src/main/res/layout/activity_add_report.xml +++ b/app/src/main/res/layout/activity_add_report.xml @@ -4,27 +4,28 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:fillViewport="true"> + android:fillViewport="true" + android:clipToPadding="false"> + android:padding="24dp"> + android:padding="24dp"> + android:textColor="?attr/colorPrimary" + android:layout_marginBottom="12dp" /> @@ -60,15 +62,15 @@ + android:padding="24dp"> + android:textColor="?attr/colorPrimary" + android:layout_marginBottom="12dp" /> @@ -96,22 +98,22 @@ + android:padding="24dp"> @@ -121,8 +123,8 @@ android:layout_height="wrap_content" android:text="@string/rate_accessibility_experience" android:textSize="14sp" - android:textColor="?attr/colorOnBackground" - android:layout_marginBottom="16dp"/> + android:textColor="?attr/colorOnSurfaceVariant" + android:layout_marginBottom="20dp"/> - + - + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -220,15 +252,15 @@ + android:padding="24dp"> + android:textColor="?attr/colorPrimary" + android:layout_marginBottom="12dp" /> + app:boxStrokeColor="?attr/colorPrimary" + app:hintTextColor="?attr/colorPrimary" + app:boxCornerRadiusTopStart="12dp" + app:boxCornerRadiusTopEnd="12dp" + app:boxCornerRadiusBottomStart="12dp" + app:boxCornerRadiusBottomEnd="12dp"> + android:inputType="textMultiLine|textCapSentences" + android:padding="16dp" /> + + android:padding="24dp"> + android:textColor="?attr/colorPrimary" + android:layout_marginBottom="8dp" /> + android:textColor="?attr/colorOnSurfaceVariant" + android:layout_marginBottom="16dp" /> - + app:cardCornerRadius="12dp" + app:cardElevation="2dp" + app:strokeColor="?attr/colorOutline" + app:strokeWidth="2dp"> + + + + @@ -310,15 +361,15 @@ android:id="@+id/btnSubmitReport" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="24dp" android:layout_marginBottom="16dp" android:text="@string/submit_report" android:textSize="16sp" android:textStyle="bold" - android:backgroundTint="@color/primaryColor_dark" + android:paddingTop="16dp" + android:paddingBottom="16dp" app:cornerRadius="12dp" - android:padding="16dp" /> + app:elevation="2dp" /> - + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 27822a3..b89eda3 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -32,7 +32,7 @@ android:layout_height="120dp" android:layout_marginBottom="24dp" android:src="@drawable/logo_add_location" - android:contentDescription="App Logo" /> + android:contentDescription="@string/app_logo" /> - - - + + app:startIconDrawable="@drawable/ic_account" + app:startIconTint="?attr/colorPrimary" + app:startIconContentDescription="Username icon"> + android:paddingBottom="16dp" + android:paddingStart="56dp" + android:paddingEnd="16dp" /> @@ -101,7 +94,8 @@ app:passwordToggleEnabled="true" app:passwordToggleTint="?attr/colorPrimary" app:startIconDrawable="@drawable/ic_lock" - app:startIconTint="?attr/colorPrimary"> + app:startIconTint="?attr/colorPrimary" + app:startIconContentDescription="Password icon"> + android:paddingBottom="16dp" + android:paddingStart="56dp" + android:paddingEnd="48dp" /> @@ -120,7 +116,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" - android:text="Forgot Password?" + android:text="@string/forgot_password" android:textColor="?attr/colorPrimary" android:textSize="14sp" android:layout_marginBottom="24dp" @@ -173,4 +169,4 @@ - + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_register.xml b/app/src/main/res/layout/activity_register.xml index fd89953..8e7e6a3 100644 --- a/app/src/main/res/layout/activity_register.xml +++ b/app/src/main/res/layout/activity_register.xml @@ -15,101 +15,168 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/toolbar" - android:layout_centerInParent="true" android:fillViewport="true" - android:padding="@dimen/layout_padding"> + android:clipToPadding="false" + android:padding="24dp"> - + + + + android:text="@string/create_account" + android:textAlignment="center" + android:textSize="28sp" + android:textStyle="bold" + android:textColor="?attr/colorPrimary" + android:layout_marginBottom="8dp" /> - + + + - + android:orientation="vertical" + android:padding="24dp"> - + + - - + + - + + - + + - + + - + + + + + + + + android:orientation="horizontal" + android:gravity="center" + android:background="?attr/selectableItemBackground" + android:clickable="true" + android:focusable="true" + android:padding="8dp"> + android:text="@string/Already_have_an_Account" + android:textSize="14sp" /> - - - + \ No newline at end of file diff --git a/app/src/main/res/layout/bottom_sheet_place_detail.xml b/app/src/main/res/layout/bottom_sheet_place_detail.xml index 247b2fe..6c8470d 100644 --- a/app/src/main/res/layout/bottom_sheet_place_detail.xml +++ b/app/src/main/res/layout/bottom_sheet_place_detail.xml @@ -4,155 +4,263 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@android:color/white"> + android:clipToPadding="false"> + android:padding="24dp"> - - + + + + + + + + + app:cardCornerRadius="16dp" + app:cardElevation="4dp"> - - - - + android:orientation="vertical" + android:padding="24dp"> - - + + - - + - + - - + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + app:cardCornerRadius="16dp" + app:cardElevation="4dp"> - + - + + + + + + + - + app:cardCornerRadius="16dp" + app:cardElevation="4dp"> - + - + - + + + + + + + + + + + + - + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_favorite.xml b/app/src/main/res/layout/fragment_favorite.xml index f84c280..0c38d86 100644 --- a/app/src/main/res/layout/fragment_favorite.xml +++ b/app/src/main/res/layout/fragment_favorite.xml @@ -1,27 +1,82 @@ + + android:padding="16dp" + android:clipToPadding="false" + android:layout_marginBottom="@dimen/bottom_menu_height" + tools:listitem="@layout/list_view_favorite" /> - + + android:orientation="vertical" + android:padding="32dp"> - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_map.xml b/app/src/main/res/layout/fragment_map.xml index d8b4246..d2f9d37 100644 --- a/app/src/main/res/layout/fragment_map.xml +++ b/app/src/main/res/layout/fragment_map.xml @@ -3,52 +3,98 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rlMap" + android:layout_marginTop="?attr/actionBarSize" android:layout_width="match_parent" - android:layout_height="match_parent" - tools:context="com.example.acloc.fragments.MapFragment"> + android:layout_marginBottom="@dimen/bottom_menu_height" + android:layout_height="match_parent"> + - + + android:layout_marginTop="24dp" + app:cardCornerRadius="16dp" + app:cardElevation="8dp" + app:cardBackgroundColor="?attr/colorSurface"> - + android:orientation="vertical"> - + + - - + + + + + + + + + + + + + android:src="@drawable/ic_location" + android:contentDescription="@string/get_current_location" + app:fabSize="normal" + app:elevation="6dp" + app:backgroundTint="?attr/colorSurface" + app:tint="?attr/colorPrimary" /> - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_my_reports.xml b/app/src/main/res/layout/fragment_my_reports.xml index 24b87bb..1c2aa93 100644 --- a/app/src/main/res/layout/fragment_my_reports.xml +++ b/app/src/main/res/layout/fragment_my_reports.xml @@ -6,40 +6,48 @@ android:layout_height="match_parent" android:layout_marginTop="?attr/actionBarSize" android:id="@+id/rlMyReport" - tools:context=".fragment.MyReportsFragment" - android:layout_marginBottom="@dimen/bottom_menu_height"> + android:layout_marginBottom="@dimen/bottom_menu_height" + android:background="?attr/colorSurface"> + - + + android:orientation="vertical" + android:padding="32dp"> - + + - + + + \ No newline at end of file diff --git a/app/src/main/res/layout/list_view_favorite.xml b/app/src/main/res/layout/list_view_favorite.xml index 0688a48..2b8eb7c 100644 --- a/app/src/main/res/layout/list_view_favorite.xml +++ b/app/src/main/res/layout/list_view_favorite.xml @@ -3,126 +3,147 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_margin="8dp"> + android:orientation="vertical" + android:padding="20dp"> + - - - - - - - - + android:layout_marginBottom="16dp"> + + + + + + + + + + + + + + + + - + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_gravity="center" + android:src="@drawable/ic_favorite" + app:tint="?attr/colorError" + android:background="?attr/selectableItemBackgroundBorderless" + android:contentDescription="Add to Favorite" /> + - + + android:orientation="vertical"> + android:gravity="center_vertical" + android:orientation="horizontal" + android:layout_marginBottom="8dp"> - + + + android:textSize="14sp" + android:textStyle="bold" /> - + + + - + + \ No newline at end of file diff --git a/app/src/main/res/layout/list_view_my_report.xml b/app/src/main/res/layout/list_view_my_report.xml index 4a60f70..c0b43a3 100644 --- a/app/src/main/res/layout/list_view_my_report.xml +++ b/app/src/main/res/layout/list_view_my_report.xml @@ -3,139 +3,218 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_margin="8dp"> + android:orientation="vertical" + android:padding="16dp"> + + android:orientation="horizontal"> - + - + + android:gravity="center_vertical" + android:orientation="horizontal" + android:layout_marginBottom="4dp"> + + + + + + + android:textColor="?attr/colorOnSurface" + android:textSize="16sp" + android:textStyle="bold" + android:maxLines="2" + android:ellipsize="end" /> + + + android:orientation="horizontal" + android:gravity="center"> - + style="@style/Widget.Material3.Button.IconButton" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_marginEnd="4dp" + android:contentDescription="@string/edit" + app:icon="@drawable/ic_edit_location" + app:iconTint="?attr/colorPrimary" + app:iconSize="20dp" + app:backgroundTint="?attr/colorSurfaceVariant" /> - + app:icon="@drawable/ic_delete" + app:iconTint="?attr/colorError" + app:iconSize="20dp" + app:backgroundTint="?attr/colorErrorContainer" /> + - + + + + - + + android:gravity="center_vertical" + android:orientation="horizontal" + android:layout_marginBottom="4dp"> + + + + + + + android:textColor="?attr/colorOnSurfaceVariant" + android:textSize="14sp" + android:lineSpacingExtra="2dp" + android:maxLines="3" + android:ellipsize="end" /> + - - + + android:layout_marginTop="12dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + + + + + + + + + + + + + + - + + \ No newline at end of file