diff --git a/app/src/main/java/com/kylecorry/trail_sense/tools/ui/ToolsFragment.kt b/app/src/main/java/com/kylecorry/trail_sense/tools/ui/ToolsFragment.kt index 0f74a7868..1384c7f8e 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/tools/ui/ToolsFragment.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/tools/ui/ToolsFragment.kt @@ -140,9 +140,11 @@ class ToolsFragment : BoundFragment() { if (filter.isNullOrBlank()) { binding.pinned.isVisible = true binding.pinnedTitle.isVisible = true + binding.pinnedEditBtn.isVisible = true } else { binding.pinned.isVisible = false binding.pinnedTitle.isVisible = false + binding.pinnedEditBtn.isVisible = false } val tools = if (filter.isNullOrBlank()) { diff --git a/app/src/main/res/layout/fragment_tools.xml b/app/src/main/res/layout/fragment_tools.xml index fcc3d1683..1c43bad94 100644 --- a/app/src/main/res/layout/fragment_tools.xml +++ b/app/src/main/res/layout/fragment_tools.xml @@ -50,33 +50,30 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - - - - - - - + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:layout_weight="1" + android:text="@string/pinned" + android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall" + app:layout_constraintEnd_toStartOf="@id/pinned_edit_btn" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + - - - - - - - + android:layout_marginEnd="16dp" + android:layout_weight="1" + android:text="@string/tools" + android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall" + app:layout_constraintEnd_toStartOf="@id/sort_btn" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/pinned" /> + +