From 61cb9f74aec536efd5653f39556fa9f960d30a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredd=20Badilla=20V=C3=ADquez?= Date: Fri, 7 Feb 2025 12:13:08 -0600 Subject: [PATCH 1/3] fix --- app/src/main/res/layout/tracklist_item.xml | 248 ++++++++---------- app/src/main/res/layout/waypointlist_item.xml | 45 +++- 2 files changed, 145 insertions(+), 148 deletions(-) diff --git a/app/src/main/res/layout/tracklist_item.xml b/app/src/main/res/layout/tracklist_item.xml index d204493ec..3026249c1 100644 --- a/app/src/main/res/layout/tracklist_item.xml +++ b/app/src/main/res/layout/tracklist_item.xml @@ -1,142 +1,116 @@ - - - - - - - - - - + + - - - - - - - + + + + + - - - - - - - - - - - - - - - + android:layout_weight="1" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/waypointlist_item.xml b/app/src/main/res/layout/waypointlist_item.xml index 52cd92e4e..3bb4d55fd 100644 --- a/app/src/main/res/layout/waypointlist_item.xml +++ b/app/src/main/res/layout/waypointlist_item.xml @@ -1,14 +1,37 @@ + - - - + - - + + + + \ No newline at end of file From 3ab2c081fa5f0363b145d880965c74128d2e36ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredd=20Badilla=20V=C3=ADquez?= Date: Sun, 9 Feb 2025 21:45:29 -0600 Subject: [PATCH 2/3] mini fix This fixed the problem @miltonials mentioned --- app/src/main/res/layout/trackdetail.xml | 3 +- app/src/main/res/layout/tracklist_item.xml | 197 +++++++++++------- app/src/main/res/layout/waypointlist_item.xml | 25 ++- 3 files changed, 141 insertions(+), 84 deletions(-) diff --git a/app/src/main/res/layout/trackdetail.xml b/app/src/main/res/layout/trackdetail.xml index bc23256b4..ed602dcc9 100644 --- a/app/src/main/res/layout/trackdetail.xml +++ b/app/src/main/res/layout/trackdetail.xml @@ -1,7 +1,8 @@ + android:layout_height="fill_parent" + android:fitsSystemWindows="true"> - + android:minHeight="72dp" + android:padding="5dp" + android:stateListAnimator="@null" + android:background="?android:attr/selectableItemBackground"> + + + + + + + android:layout_marginStart="8dp" + android:layout_marginTop="4dp" + android:orientation="horizontal" + app:layout_constraintStart_toEndOf="@id/trackmgr_item_id_symbol" + app:layout_constraintTop_toBottomOf="@id/trackmgr_item_nameordate"> + + android:text="@string/trackmgr_waypoints_count" + android:textStyle="bold" + android:textAppearance="?android:attr/textAppearanceSmall" + android:duplicateParentState="false"/> + + android:layout_marginStart="4dp" + android:text="{x}" + android:textAppearance="?android:attr/textAppearanceSmall" + android:duplicateParentState="false"/> + android:layout_marginStart="8dp" + android:layout_marginTop="4dp" + android:layout_marginEnd="8dp" + android:orientation="horizontal" + app:layout_constraintStart_toEndOf="@id/trackmgr_item_id_symbol" + app:layout_constraintEnd_toStartOf="@id/icons_container" + app:layout_constraintTop_toBottomOf="@id/waypoints_container"> + android:text="@string/trackmgr_trackpoints_count" + android:textStyle="bold" + android:textAppearance="?android:attr/textAppearanceSmall" + android:duplicateParentState="false"/> - - - - - - - - - - - - - + android:layout_marginStart="4dp" + android:minWidth="40dp" + android:text="{y}" + android:textAppearance="?android:attr/textAppearanceSmall" + android:duplicateParentState="false"/> - + android:layout_height="0dp" + android:minWidth="32dp" + android:paddingHorizontal="4dp" + android:stateListAnimator="@null" + android:duplicateParentState="false" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent"> + android:src="@android:drawable/presence_online" + android:background="@null" + android:stateListAnimator="@null" + android:duplicateParentState="false" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toTopOf="@id/trackmgr_item_upload_statusicon" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"/> - - \ No newline at end of file + android:src="@android:drawable/stat_sys_upload_done" + android:background="@null" + android:stateListAnimator="@null" + android:duplicateParentState="false" + app:layout_constraintTop_toBottomOf="@id/trackmgr_item_statusicon" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"/> + + \ No newline at end of file diff --git a/app/src/main/res/layout/waypointlist_item.xml b/app/src/main/res/layout/waypointlist_item.xml index 3bb4d55fd..bb3aaeed3 100644 --- a/app/src/main/res/layout/waypointlist_item.xml +++ b/app/src/main/res/layout/waypointlist_item.xml @@ -4,7 +4,10 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="8dp"> + android:minHeight="72dp" + android:padding="8dp" + android:stateListAnimator="@null" + android:background="?android:attr/selectableItemBackground"> + app:layout_constraintEnd_toStartOf="@id/wplist_item_timestamp" + android:duplicateParentState="false"/> + app:layout_constraintEnd_toEndOf="parent" + android:duplicateParentState="false"/> + app:layout_constraintEnd_toEndOf="parent" + android:duplicateParentState="false"/> + + + \ No newline at end of file From ab4ace8fe2351d0f759bbe26b1fba8bb3aefd86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredd=20Badilla=20V=C3=ADquez?= Date: Tue, 11 Feb 2025 10:17:42 -0600 Subject: [PATCH 3/3] id orientation fix I adjust the id orientation of each track from vertical to horizontal --- app/src/main/res/layout/tracklist_item.xml | 103 ++++++++++----------- 1 file changed, 49 insertions(+), 54 deletions(-) diff --git a/app/src/main/res/layout/tracklist_item.xml b/app/src/main/res/layout/tracklist_item.xml index 4ba674d33..2a7bc5dd8 100644 --- a/app/src/main/res/layout/tracklist_item.xml +++ b/app/src/main/res/layout/tracklist_item.xml @@ -1,5 +1,5 @@ - - + app:layout_constraintTop_toTopOf="parent"> - + + + + @@ -56,7 +58,7 @@ android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:orientation="horizontal" - app:layout_constraintStart_toEndOf="@id/trackmgr_item_id_symbol" + app:layout_constraintStart_toEndOf="@id/id_container" app:layout_constraintTop_toBottomOf="@id/trackmgr_item_nameordate"> - - - + android:text="@string/trackmgr_trackpoints_count" + android:textStyle="bold" + android:textAppearance="?android:attr/textAppearanceSmall" + android:duplicateParentState="false" + app:layout_constraintStart_toEndOf="@id/id_container" + app:layout_constraintTop_toBottomOf="@id/waypoints_container"/> - - +