content_location_picker.xml: adjust picker pin and shadow location

Before this commit, the location picker pin and shadow graphics were incorrectly located on the screen.
Specifically, the bottom of the pin was not located at the center of the view. Since pressing the
checkmark button saves the location at the center of the view, users would most likely save the wrong location.

After this commit, the location picker pin and shadow graphics have been moved upward. The shadow graphic is
now located at the exact center of the view, and the bottom of the location picker pin is directly over the
center as well. Users may now use the bottom of the pin as an accurate location picker.
This commit is contained in:
Jason Whitmore 2024-09-05 17:28:28 -07:00
parent b803474e22
commit 8ca6348c8c

View file

@ -16,6 +16,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/map_default_map_marker" app:srcCompat="@drawable/map_default_map_marker"
android:layout_marginBottom="45dp"
android:contentDescription="@string/location_picker_image_view" /> android:contentDescription="@string/location_picker_image_view" />
<ImageView <ImageView
@ -24,10 +25,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/location_picker_image_view_shadow" android:contentDescription="@string/location_picker_image_view_shadow"
android:elevation="1dp" android:elevation="1dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/location_picker_image_view_marker" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/map_default_map_marker_shadow" /> app:srcCompat="@drawable/map_default_map_marker_shadow" />
<org.osmdroid.views.MapView <org.osmdroid.views.MapView