[Enhancement] Add option to centre on GPS location for issue #5008 (#5098)

* Add option to centre on GPS location for issue #5008

* Rename and add new comments for issue #5008

* Add new comments for issue #5008

* Update comments for issue #5008
This commit is contained in:
russianbear222 2022-12-17 21:05:45 +07:00 committed by GitHub
parent 7b18c3eeb7
commit 6dec69147f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom">
@ -19,6 +20,19 @@
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/ic_check_black_24dp" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/center_on_gps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:contentDescription="@string/select_location_location_picker"
app:backgroundTint="@color/white"
app:elevation="3dp"
app:layout_anchorGravity="bottom|end"
app:layout_constraintBottom_toTopOf="@+id/location_chosen_button"
app:layout_constraintEnd_toEndOf="@id/location_chosen_button"
app:srcCompat="@drawable/ic_my_location_black_24dp" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_attribution"
android:layout_width="wrap_content"