From 62d1be3102a322b9eb14280c003f99f4606f507e Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 11 Jan 2022 01:24:31 -0600 Subject: MapFragment properly draws reports and renamed icons --- androidApp/src/main/res/drawable/device_contact.xml | 10 ++++++++++ androidApp/src/main/res/drawable/device_locked.xml | 5 +++++ androidApp/src/main/res/drawable/device_status.xml | 5 +++++ androidApp/src/main/res/drawable/device_unlocked.xml | 5 +++++ .../src/main/res/drawable/ic_baseline_calendar_today_24.xml | 5 ----- .../main/res/drawable/ic_baseline_fiber_manual_record_24.xml | 5 ----- androidApp/src/main/res/drawable/ic_baseline_list_24.xml | 10 ---------- .../src/main/res/drawable/ic_baseline_location_on_24.xml | 10 ---------- androidApp/src/main/res/drawable/ic_baseline_lock_24.xml | 5 ----- .../src/main/res/drawable/ic_baseline_lock_open_24.xml | 5 ----- androidApp/src/main/res/drawable/ic_baseline_map_24.xml | 10 ---------- androidApp/src/main/res/drawable/ic_baseline_menu_24.xml | 10 ---------- androidApp/src/main/res/drawable/ic_baseline_person_24.xml | 10 ---------- androidApp/src/main/res/drawable/ic_baseline_speed_24.xml | 10 ---------- androidApp/src/main/res/drawable/icon_list.xml | 10 ++++++++++ androidApp/src/main/res/drawable/icon_map.xml | 10 ++++++++++ androidApp/src/main/res/drawable/icon_menu.xml | 10 ++++++++++ androidApp/src/main/res/drawable/map_report_end.xml | 12 ++++++++++++ androidApp/src/main/res/drawable/map_report_position.xml | 12 ++++++++++++ androidApp/src/main/res/drawable/map_report_start.xml | 12 ++++++++++++ androidApp/src/main/res/drawable/position_address.xml | 10 ++++++++++ androidApp/src/main/res/drawable/position_datetime.xml | 5 +++++ androidApp/src/main/res/drawable/position_speed.xml | 10 ++++++++++ androidApp/src/main/res/layout/unit_details_reports.xml | 4 ++-- androidApp/src/main/res/layout/unit_item.xml | 12 ++++++------ androidApp/src/main/res/layout/unit_map_fragment.xml | 12 ++++++------ androidApp/src/main/res/layout/units_activity.xml | 2 +- 27 files changed, 131 insertions(+), 95 deletions(-) create mode 100644 androidApp/src/main/res/drawable/device_contact.xml create mode 100644 androidApp/src/main/res/drawable/device_locked.xml create mode 100644 androidApp/src/main/res/drawable/device_status.xml create mode 100644 androidApp/src/main/res/drawable/device_unlocked.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_calendar_today_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_fiber_manual_record_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_list_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_location_on_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_lock_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_lock_open_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_map_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_menu_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_person_24.xml delete mode 100644 androidApp/src/main/res/drawable/ic_baseline_speed_24.xml create mode 100644 androidApp/src/main/res/drawable/icon_list.xml create mode 100644 androidApp/src/main/res/drawable/icon_map.xml create mode 100644 androidApp/src/main/res/drawable/icon_menu.xml create mode 100644 androidApp/src/main/res/drawable/map_report_end.xml create mode 100644 androidApp/src/main/res/drawable/map_report_position.xml create mode 100644 androidApp/src/main/res/drawable/map_report_start.xml create mode 100644 androidApp/src/main/res/drawable/position_address.xml create mode 100644 androidApp/src/main/res/drawable/position_datetime.xml create mode 100644 androidApp/src/main/res/drawable/position_speed.xml (limited to 'androidApp/src/main/res') diff --git a/androidApp/src/main/res/drawable/device_contact.xml b/androidApp/src/main/res/drawable/device_contact.xml new file mode 100644 index 0000000..0faf05d --- /dev/null +++ b/androidApp/src/main/res/drawable/device_contact.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/drawable/device_locked.xml b/androidApp/src/main/res/drawable/device_locked.xml new file mode 100644 index 0000000..1fe62c8 --- /dev/null +++ b/androidApp/src/main/res/drawable/device_locked.xml @@ -0,0 +1,5 @@ + + + diff --git a/androidApp/src/main/res/drawable/device_status.xml b/androidApp/src/main/res/drawable/device_status.xml new file mode 100644 index 0000000..13890d5 --- /dev/null +++ b/androidApp/src/main/res/drawable/device_status.xml @@ -0,0 +1,5 @@ + + + diff --git a/androidApp/src/main/res/drawable/device_unlocked.xml b/androidApp/src/main/res/drawable/device_unlocked.xml new file mode 100644 index 0000000..ed352bf --- /dev/null +++ b/androidApp/src/main/res/drawable/device_unlocked.xml @@ -0,0 +1,5 @@ + + + diff --git a/androidApp/src/main/res/drawable/ic_baseline_calendar_today_24.xml b/androidApp/src/main/res/drawable/ic_baseline_calendar_today_24.xml deleted file mode 100644 index e059617..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_calendar_today_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_fiber_manual_record_24.xml b/androidApp/src/main/res/drawable/ic_baseline_fiber_manual_record_24.xml deleted file mode 100644 index 13890d5..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_fiber_manual_record_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_list_24.xml b/androidApp/src/main/res/drawable/ic_baseline_list_24.xml deleted file mode 100644 index b0e68e0..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_list_24.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_location_on_24.xml b/androidApp/src/main/res/drawable/ic_baseline_location_on_24.xml deleted file mode 100644 index 71ef7bc..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_location_on_24.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_lock_24.xml b/androidApp/src/main/res/drawable/ic_baseline_lock_24.xml deleted file mode 100644 index ed352bf..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_lock_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_lock_open_24.xml b/androidApp/src/main/res/drawable/ic_baseline_lock_open_24.xml deleted file mode 100644 index 1fe62c8..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_lock_open_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_map_24.xml b/androidApp/src/main/res/drawable/ic_baseline_map_24.xml deleted file mode 100644 index d1274d8..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_map_24.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_menu_24.xml b/androidApp/src/main/res/drawable/ic_baseline_menu_24.xml deleted file mode 100644 index 4350ba9..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_menu_24.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_person_24.xml b/androidApp/src/main/res/drawable/ic_baseline_person_24.xml deleted file mode 100644 index 0faf05d..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_person_24.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/ic_baseline_speed_24.xml b/androidApp/src/main/res/drawable/ic_baseline_speed_24.xml deleted file mode 100644 index febd057..0000000 --- a/androidApp/src/main/res/drawable/ic_baseline_speed_24.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/androidApp/src/main/res/drawable/icon_list.xml b/androidApp/src/main/res/drawable/icon_list.xml new file mode 100644 index 0000000..b0e68e0 --- /dev/null +++ b/androidApp/src/main/res/drawable/icon_list.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/drawable/icon_map.xml b/androidApp/src/main/res/drawable/icon_map.xml new file mode 100644 index 0000000..d1274d8 --- /dev/null +++ b/androidApp/src/main/res/drawable/icon_map.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/drawable/icon_menu.xml b/androidApp/src/main/res/drawable/icon_menu.xml new file mode 100644 index 0000000..4350ba9 --- /dev/null +++ b/androidApp/src/main/res/drawable/icon_menu.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/drawable/map_report_end.xml b/androidApp/src/main/res/drawable/map_report_end.xml new file mode 100644 index 0000000..de4d015 --- /dev/null +++ b/androidApp/src/main/res/drawable/map_report_end.xml @@ -0,0 +1,12 @@ + + + + diff --git a/androidApp/src/main/res/drawable/map_report_position.xml b/androidApp/src/main/res/drawable/map_report_position.xml new file mode 100644 index 0000000..fab1db5 --- /dev/null +++ b/androidApp/src/main/res/drawable/map_report_position.xml @@ -0,0 +1,12 @@ + + + + diff --git a/androidApp/src/main/res/drawable/map_report_start.xml b/androidApp/src/main/res/drawable/map_report_start.xml new file mode 100644 index 0000000..fc29b53 --- /dev/null +++ b/androidApp/src/main/res/drawable/map_report_start.xml @@ -0,0 +1,12 @@ + + + + diff --git a/androidApp/src/main/res/drawable/position_address.xml b/androidApp/src/main/res/drawable/position_address.xml new file mode 100644 index 0000000..71ef7bc --- /dev/null +++ b/androidApp/src/main/res/drawable/position_address.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/drawable/position_datetime.xml b/androidApp/src/main/res/drawable/position_datetime.xml new file mode 100644 index 0000000..e059617 --- /dev/null +++ b/androidApp/src/main/res/drawable/position_datetime.xml @@ -0,0 +1,5 @@ + + + diff --git a/androidApp/src/main/res/drawable/position_speed.xml b/androidApp/src/main/res/drawable/position_speed.xml new file mode 100644 index 0000000..febd057 --- /dev/null +++ b/androidApp/src/main/res/drawable/position_speed.xml @@ -0,0 +1,10 @@ + + + diff --git a/androidApp/src/main/res/layout/unit_details_reports.xml b/androidApp/src/main/res/layout/unit_details_reports.xml index 1eaf68c..dc649e4 100644 --- a/androidApp/src/main/res/layout/unit_details_reports.xml +++ b/androidApp/src/main/res/layout/unit_details_reports.xml @@ -10,7 +10,7 @@ android:name="mx.trackermap.TrackerMap.android.map.MapFragment" android:layout_width="0dp" android:layout_height="0dp" - android:layout_margin="@dimen/margin" + android:layout_marginBottom="@dimen/margin" app:layout_constraintBottom_toTopOf="@id/periodSection" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -21,7 +21,7 @@ android:id="@+id/eventsScroll" android:layout_width="0dp" android:layout_height="0dp" - android:layout_margin="@dimen/margin" + android:layout_marginBottom="@dimen/margin" android:visibility="gone" app:layout_constraintBottom_toTopOf="@id/periodSection" app:layout_constraintEnd_toEndOf="parent" diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml index 96011b9..261a7a6 100644 --- a/androidApp/src/main/res/layout/unit_item.xml +++ b/androidApp/src/main/res/layout/unit_item.xml @@ -82,7 +82,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="5dp" - android:src="@drawable/ic_baseline_fiber_manual_record_24" + android:src="@drawable/device_status" app:tint="?android:textColorPrimary" tools:ignore="ContentDescription" /> @@ -93,7 +93,7 @@ android:layout_toEndOf="@id/statusIcon" android:visibility="gone" android:layout_marginEnd="5dp" - android:src="@drawable/ic_baseline_lock_24" + android:src="@drawable/device_unlocked" tools:ignore="ContentDescription" /> diff --git a/androidApp/src/main/res/layout/unit_map_fragment.xml b/androidApp/src/main/res/layout/unit_map_fragment.xml index 35643eb..6c2720b 100644 --- a/androidApp/src/main/res/layout/unit_map_fragment.xml +++ b/androidApp/src/main/res/layout/unit_map_fragment.xml @@ -40,7 +40,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="5dp" - android:src="@drawable/ic_baseline_fiber_manual_record_24" + android:src="@drawable/device_status" app:tint="?android:textColorPrimary" tools:ignore="ContentDescription" /> @@ -51,7 +51,7 @@ android:layout_toEndOf="@id/statusIcon" android:visibility="gone" android:layout_marginEnd="5dp" - android:src="@drawable/ic_baseline_lock_24" + android:src="@drawable/device_unlocked" tools:ignore="ContentDescription" /> diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml index bff3789..f0fd2ee 100644 --- a/androidApp/src/main/res/layout/units_activity.xml +++ b/androidApp/src/main/res/layout/units_activity.xml @@ -28,7 +28,7 @@ android:layout_marginStart="@dimen/fab_margin" android:layout_marginTop="@dimen/fab_margin" app:elevation="@dimen/fab_elevation" - android:src="@drawable/ic_baseline_menu_24" + android:src="@drawable/icon_menu" android:contentDescription="@string/open_drawer"/>