aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-18 15:10:24 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-18 15:10:24 +0000
commit03d8cf497db20388403f7ff294405d6ab7d108b7 (patch)
treeddb5515516e18794c2bde0778a812da50240e4fd /app/src/main/res
parent1208a2d4f89c5f9d885092a6976fbae33feddb15 (diff)
downloadinfinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.tar
infinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.tar.gz
infinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.tar.bz2
infinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.tar.lz
infinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.tar.xz
infinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.tar.zst
infinity-for-reddit-03d8cf497db20388403f7ff294405d6ab7d108b7.zip
Show error view in TrendingActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_trending.xml26
-rw-r--r--app/src/main/res/values/strings.xml4
2 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_trending.xml b/app/src/main/res/layout/activity_trending.xml
index a73330a6..6c78425f 100644
--- a/app/src/main/res/layout/activity_trending.xml
+++ b/app/src/main/res/layout/activity_trending.xml
@@ -46,4 +46,30 @@
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
+ <LinearLayout
+ android:id="@+id/fetch_trending_search_linear_layout_trending_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginTop="48dp"
+ android:layout_marginBottom="48dp"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:visibility="gone">
+
+ <ImageView
+ android:id="@+id/fetch_trending_search_image_view_trending_activity"
+ android:layout_width="150dp"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/fetch_trending_search_text_view_trending_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:gravity="center"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ </LinearLayout>
+
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 19a82058..d752bffa 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1146,4 +1146,8 @@
<string name="please_wait_image_is_uploading">An image is still being uploaded. Please wait.</string>
+ <string name="error_fetch_trending_search">Fetch trending searches failed.\nTap to retry.</string>
+ <string name="error_parse_trending_search">Parse trending searches failed.\nTap to retry.</string>
+ <string name="no_trending_search">No trending searches found.\nTap to retry.</string>
+
</resources>