mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
* Implemented basic flow to remove location * Fixed and added new tests and enhanced UX
This commit is contained in:
parent
7dd00efa64
commit
0a6257b27b
8 changed files with 150 additions and 21 deletions
|
|
@ -54,6 +54,28 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<Button
|
||||
android:id="@+id/remove_location"
|
||||
style="@style/Widget.AppCompat.Button"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:backgroundTint="@color/deleteRed"
|
||||
android:text="@string/remove_location"
|
||||
android:textColor="@color/white"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/map_bottom_layout"
|
||||
app:layout_constraintEnd_toStartOf="@+id/guideline2"
|
||||
app:layout_constraintStart_toStartOf="@id/map_bottom_layout"
|
||||
app:layout_constraintTop_toTopOf="@id/map_bottom_layout" />
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.35" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/modify_location"
|
||||
android:layout_width="0dp"
|
||||
|
|
@ -64,7 +86,7 @@
|
|||
android:layout_margin="5dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/map_bottom_layout"
|
||||
app:layout_constraintEnd_toStartOf="@+id/guideline3"
|
||||
app:layout_constraintStart_toStartOf="@id/map_bottom_layout"
|
||||
app:layout_constraintStart_toEndOf="@+id/guideline2"
|
||||
app:layout_constraintTop_toTopOf="@id/map_bottom_layout" />
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
|
|
@ -72,7 +94,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.5" />
|
||||
app:layout_constraintGuide_percent="0.7" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/show_in_map"
|
||||
|
|
|
|||
|
|
@ -790,6 +790,11 @@ Upload your first media by tapping on the add button.</string>
|
|||
<string name="see_your_achievements">See your achievements</string>
|
||||
<string name="edit_image">Edit Image</string>
|
||||
<string name="edit_location">Edit Location</string>
|
||||
<string name="location_updated">Location updated!</string>
|
||||
<string name="remove_location">Remove Location</string>
|
||||
<string name="remove_location_warning_title">Remove Location Warning</string>
|
||||
<string name="remove_location_warning_desc">Location makes pictures more useful and findable. Do you really wish to remove location from this picture?</string>
|
||||
<string name="location_removed">Location removed!</string>
|
||||
<string name="send_thanks_to_author">Thank the author</string>
|
||||
<string name="error_sending_thanks">Error sending thanks to author.</string>
|
||||
<string name="invalid_login_message">Your log-in has expired. Please log in again.</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue