diff --git a/app/src/main/java/com/kylecorry/trail_sense/tools/triangulate/ui/FragmentToolTriangulate.kt b/app/src/main/java/com/kylecorry/trail_sense/tools/triangulate/ui/FragmentToolTriangulate.kt index dd5398223..87a365c1b 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/tools/triangulate/ui/FragmentToolTriangulate.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/tools/triangulate/ui/FragmentToolTriangulate.kt @@ -115,17 +115,16 @@ class FragmentToolTriangulate : BoundFragment() // Handle expansion binding.location1Expansion.setOnExpandStateChangedListener { - // TODO: Set the dropdown icon + binding.location1DropdownIcon.rotation = if (it) 180f else 0f } binding.location2Expansion.setOnExpandStateChangedListener { - // TODO: Set the dropdown icon + binding.location2DropdownIcon.rotation = if (it) 180f else 0f } // Expand the first location by default (this will change once it loads the last recorded values) binding.location1Expansion.expand() - // TODO: Add an status indicator for the location // TODO: Display the distance to the location in the title beaconLayer.setOutlineColor(Color.WHITE) binding.map.setLayers(listOf(pathLayer, beaconLayer)) diff --git a/app/src/main/res/layout/fragment_tool_triangulate.xml b/app/src/main/res/layout/fragment_tool_triangulate.xml index 52a5b4fff..0b23fd06c 100644 --- a/app/src/main/res/layout/fragment_tool_triangulate.xml +++ b/app/src/main/res/layout/fragment_tool_triangulate.xml @@ -71,30 +71,47 @@ android:layout_marginTop="16dp" android:layout_marginEnd="8dp" android:background="@drawable/rounded_rectangle" - android:backgroundTint="?attr/colorSurface" - android:padding="16dp"> + android:backgroundTint="?attr/colorSurface"> - + android:gravity="center_vertical" + android:orientation="horizontal" + android:padding="16dp"> + + + + + + + android:orientation="vertical" + android:padding="16dp" + android:paddingTop="0dp"> + android:layout_height="wrap_content" /> + android:backgroundTint="?attr/colorSurface"> - + android:gravity="center_vertical" + android:orientation="horizontal" + android:padding="16dp"> + + + + + + + android:orientation="vertical" + android:padding="16dp" + android:paddingTop="0dp"> + android:layout_height="wrap_content" />