mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-01 15:23:54 +01:00
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:
parent
b803474e22
commit
8ca6348c8c
1 changed files with 3 additions and 2 deletions
|
|
@ -16,6 +16,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/map_default_map_marker"
|
||||
android:layout_marginBottom="45dp"
|
||||
android:contentDescription="@string/location_picker_image_view" />
|
||||
|
||||
<ImageView
|
||||
|
|
@ -24,10 +25,10 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/location_picker_image_view_shadow"
|
||||
android:elevation="1dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintRight_toRightOf="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" />
|
||||
|
||||
<org.osmdroid.views.MapView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue