aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-07-03 02:27:24 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-07-03 02:27:24 +0000
commit4f8b313b3c42084e66fcdc0e3aaaf870c97b5688 (patch)
tree399fb5287fb6e6f647167291aba364dad0ccd0ff /app/src/main/res/layout
parent9a4edde8fb5550b5caa66eeaba4e686a6b1ff442 (diff)
downloadinfinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar
infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.gz
infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.bz2
infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.lz
infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.xz
infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.zst
infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.zip
Fully collapsing comments is now available (barebone).
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml1
-rw-r--r--app/src/main/res/layout/item_comment_fully_collapsed.xml56
2 files changed, 57 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
index c1126a2d..5d8c86d0 100644
--- a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
@@ -121,6 +121,7 @@
android:text="@string/see_removed_comment"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
android:visibility="gone" />
</LinearLayout>
diff --git a/app/src/main/res/layout/item_comment_fully_collapsed.xml b/app/src/main/res/layout/item_comment_fully_collapsed.xml
new file mode 100644
index 00000000..f77b683c
--- /dev/null
+++ b/app/src/main/res/layout/item_comment_fully_collapsed.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <View
+ android:id="@+id/vertical_block_item_comment_fully_collapsed"
+ android:layout_width="0dp"
+ android:layout_height="match_parent" />
+
+ <TextView
+ android:id="@+id/user_name_text_view_item_comment_fully_collapsed"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="16dp"
+ android:paddingEnd="8dp"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ <TextView
+ android:id="@+id/score_text_view_item_comment_fully_collapsed"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ <TextView
+ android:id="@+id/more_count_text_view_item_comment_fully_collapsed"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="8dp"
+ android:paddingEnd="16dp"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ </LinearLayout>
+
+ <View
+ android:id="@+id/divider_item_load_comment_fully_collapsed"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:visibility="gone" />
+
+</LinearLayout> \ No newline at end of file