aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_search.xml
diff options
context:
space:
mode:
authorAbhishek <52370265+abhishekabhi789@users.noreply.github.com>2023-09-14 14:29:40 +0000
committerGitHub <noreply@github.com>2023-09-14 14:29:40 +0000
commit6475dd3f05e7f02de7353315ea7db2ef3a875214 (patch)
treefb57c527b3314ac682a3b790eb7cd77c5c898d03 /app/src/main/res/layout/activity_search.xml
parent4cdf12b664ee1b446cbfa44d9ecb3b3f1d3b01b4 (diff)
downloadinfinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar
infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.gz
infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.bz2
infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.lz
infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.xz
infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.zst
infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.zip
Added a button to clear all recent searches. (#1487)
* Added a button to clear all recent searches. - Deletes all the searches for the current user from the database. - Delete icon placed at the end of subreddit name layout in the activity search layout(I couldn't find a better place for it). _Icon visible only when there are recent searches. * Confirmation dialog shows when clearing all search history.
Diffstat (limited to 'app/src/main/res/layout/activity_search.xml')
-rw-r--r--app/src/main/res/layout/activity_search.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml
index f6269887..1a4580c6 100644
--- a/app/src/main/res/layout/activity_search.xml
+++ b/app/src/main/res/layout/activity_search.xml
@@ -81,13 +81,13 @@
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
- android:focusable="true"
- android:padding="16dp">
+ android:focusable="true">
<TextView
android:id="@+id/search_in_text_view_search_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_margin="16dp"
android:text="@string/search_in"
android:textColor="?attr/colorAccent"
android:textSize="?attr/font_default"
@@ -105,6 +105,16 @@
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
+ <ImageView
+ android:id="@+id/delete_all_recent_searches_image_view_search_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:src="@drawable/ic_delete_all_24"
+ app:tint="@color/primaryTextColor" />
</RelativeLayout>