aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-06-23 09:53:30 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-06-23 09:53:30 +0000
commit34d49d884c5fc639204d0e464455e0d898a987e4 (patch)
tree625e350b4b620edb9bd9fb57e74d553d706e1f23 /app/src/main/res
parente9cec91a5b53995ca6134d8e8bf9cc2c30e16735 (diff)
downloadinfinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.tar
infinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.tar.gz
infinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.tar.bz2
infinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.tar.lz
infinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.tar.xz
infinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.tar.zst
infinity-for-reddit-34d49d884c5fc639204d0e464455e0d898a987e4.zip
Set onClickListener in ViewHolder instead of onBindViewHolder in CommentRecyclerViewAdapter. Do nothing when failing to vote comments.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_is_loading_more_comments.xml26
-rw-r--r--app/src/main/res/layout/item_load_more_comments_failed.xml29
-rw-r--r--app/src/main/res/layout/item_load_more_comments_placeholder.xml (renamed from app/src/main/res/layout/item_load_more_comments.xml)2
3 files changed, 1 insertions, 56 deletions
diff --git a/app/src/main/res/layout/item_is_loading_more_comments.xml b/app/src/main/res/layout/item_is_loading_more_comments.xml
deleted file mode 100644
index 7dfdf5cb..00000000
--- a/app/src/main/res/layout/item_is_loading_more_comments.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <View
- android:id="@+id/vertical_block_item_is_loading_more_comments"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:background="@color/textColorPrimaryDark" />
-
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:padding="8dp"
- android:text="@string/loading"
- android:textColor="@color/primaryTextColor" />
-
- </LinearLayout>
-
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_load_more_comments_failed.xml b/app/src/main/res/layout/item_load_more_comments_failed.xml
deleted file mode 100644
index eb1b4e4f..00000000
--- a/app/src/main/res/layout/item_load_more_comments_failed.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <View
- android:id="@+id/vertical_block_item_load_more_comments_failed"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:background="@color/textColorPrimaryDark" />
-
- <TextView
- android:id="@+id/retry_text_view_item_load_more_comments_failed"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:layout_gravity="center_vertical"
- android:gravity="center"
- android:padding="8dp"
- android:text="@string/comment_load_more_comments_failed"
- android:textColor="@color/primaryTextColor" />
-
- </LinearLayout>
-
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_load_more_comments.xml b/app/src/main/res/layout/item_load_more_comments_placeholder.xml
index 5b92d767..601a30d6 100644
--- a/app/src/main/res/layout/item_load_more_comments.xml
+++ b/app/src/main/res/layout/item_load_more_comments_placeholder.xml
@@ -14,7 +14,7 @@
android:background="@color/textColorPrimaryDark" />
<TextView
- android:id="@+id/load_more_comments_text_view_item_load_more_comments"
+ android:id="@+id/placeholder_text_view_item_load_more_comments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"