From f77ba0ef2329e7fed7a294d5baa654e5851e696d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 18 Jul 2021 22:39:00 +0800 Subject: Show title on trending searches. --- app/src/main/AndroidManifest.xml | 2 +- .../adapters/TrendingSearchRecyclerViewAdapter.java | 3 ++- app/src/main/res/drawable/trending_search_title_background.xml | 9 +++++++++ app/src/main/res/layout/item_trending_search.xml | 7 +++++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable/trending_search_title_background.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d88f5f22..30cfcf72 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -37,7 +37,7 @@ + android:theme="@style/AppTheme.Slidable" /> { itemClickListener.onClick(trendingSearches.get(getBindingAdapterPosition())); diff --git a/app/src/main/res/drawable/trending_search_title_background.xml b/app/src/main/res/drawable/trending_search_title_background.xml new file mode 100644 index 00000000..8bcd7150 --- /dev/null +++ b/app/src/main/res/drawable/trending_search_title_background.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_trending_search.xml b/app/src/main/res/layout/item_trending_search.xml index 78981af6..8227b938 100644 --- a/app/src/main/res/layout/item_trending_search.xml +++ b/app/src/main/res/layout/item_trending_search.xml @@ -7,7 +7,7 @@ android:layout_marginBottom="8dp" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" - app:cardCornerRadius="24dp" + app:cardCornerRadius="16dp" app:cardElevation="2dp"> \ No newline at end of file -- cgit v1.2.3