aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-18 14:39:00 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-18 14:39:00 +0000
commitf77ba0ef2329e7fed7a294d5baa654e5851e696d (patch)
tree28bc59d0ec75d52fcc3031f07c47ba39e2b2b2b1 /app/src/main/res
parent00917fc1c19d7aee510062ca0830505399f8fc24 (diff)
downloadinfinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.tar
infinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.tar.gz
infinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.tar.bz2
infinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.tar.lz
infinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.tar.xz
infinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.tar.zst
infinity-for-reddit-f77ba0ef2329e7fed7a294d5baa654e5851e696d.zip
Show title on trending searches.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable/trending_search_title_background.xml9
-rw-r--r--app/src/main/res/layout/item_trending_search.xml7
2 files changed, 14 insertions, 2 deletions
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <gradient android:startColor="#323232"
+ android:endColor="@android:color/transparent"
+ android:angle="90"
+ android:type="linear"
+ android:useLevel="true" />
+</shape> \ 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">
<RelativeLayout
@@ -64,8 +64,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
+ android:padding="16dp"
+ android:background="@drawable/trending_search_title_background"
android:maxLines="2"
- android:textSize="?attr/title_font_18"
+ android:textColor="#FFFFFF"
+ android:textSize="?attr/title_font_20"
android:fontFamily="?attr/title_font_family" />
</com.google.android.material.card.MaterialCardView> \ No newline at end of file