Marker list: split category and description into two fields.

This commit is contained in:
Dennis Guse
2025-12-03 16:59:48 +01:00
parent d518507193
commit 595ad7f7b5
3 changed files with 19 additions and 20 deletions
+17 -3
View File
@@ -44,13 +44,25 @@
<!-- Total time and distance -->
<TextView
android:id="@+id/marker_list_item_time_distance"
android:id="@+id/marker_list_item_category"
style='?attr/textAppearanceBodySmall'
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="@+id/marker_list_item_name"
app:layout_constraintTop_toBottomOf="@+id/marker_list_item_name"
tools:text="50:43 (50.00km)" />
tools:text="Mountain" />
<TextView
android:id="@+id/marker_list_item_description"
style="?attr/textAppearanceBodySmall"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="end"
android:ellipsize="end"
android:maxLines="2"
app:layout_constraintStart_toStartOf="@+id/marker_list_item_name"
app:layout_constraintTop_toBottomOf="@+id/marker_list_item_category"
tools:text="Some wonderful mountain" />
<!-- Time -->
<TextView
@@ -68,7 +80,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="marker_list_item_photo,marker_list_item_name,marker_list_item_date,marker_list_item_time_distance,marker_list_item_time" />
app:layout_constraintTop_toBottomOf="@+id/marker_list_item_description"
app:constraint_referenced_ids="marker_list_item_photo,marker_list_item_name,marker_list_item_date,marker_list_item_category" />
<!-- Bottom Line -->
<View