From 6e4519ef93f295178e0b850b739bd0085de6aa17 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 29 Sep 2020 22:19:54 +0800 Subject: Display search history in SearchActivity. Save suggested sort type and nsfw info in database for SubredditData. Fix an issue in parsing posts. --- app/src/main/res/layout/activity_search.xml | 74 +++++++++++++++------- .../main/res/layout/item_recent_search_query.xml | 19 ++++++ 2 files changed, 69 insertions(+), 24 deletions(-) create mode 100644 app/src/main/res/layout/item_recent_search_query.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index 0048e1fc..972ba2af 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -48,38 +48,64 @@ android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> - + android:orientation="vertical"> - + android:background="?attr/selectableItemBackground" + android:clickable="true" + android:focusable="true" + android:padding="16dp"> + + + + + + + + - - + android:padding="16dp" + android:text="@string/recent_searches" + android:fontFamily="?attr/font_family" + android:visibility="gone" /> + + + + diff --git a/app/src/main/res/layout/item_recent_search_query.xml b/app/src/main/res/layout/item_recent_search_query.xml new file mode 100644 index 00000000..f014e2fe --- /dev/null +++ b/app/src/main/res/layout/item_recent_search_query.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file -- cgit v1.2.3