aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-07-17 13:33:16 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-07-17 13:33:16 +0000
commit42497bb2475bbd0edaff79a6f1aaf99104e1b84b (patch)
treef7c4f18b63111fef90cc51099abd5d2ed274cfdb /app/src/main/res/layout
parentebf542161e94cf6c9c1691b8681717a18afd42c2 (diff)
downloadinfinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.tar
infinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.tar.gz
infinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.tar.bz2
infinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.tar.lz
infinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.tar.xz
infinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.tar.zst
infinity-for-reddit-42497bb2475bbd0edaff79a6f1aaf99104e1b84b.zip
Display spoiler and flair info in posts.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_post.xml44
-rw-r--r--app/src/main/res/layout/item_post_detail.xml44
2 files changed, 86 insertions, 2 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml
index fbaf0d87..e6e41b81 100644
--- a/app/src/main/res/layout/item_post.xml
+++ b/app/src/main/res/layout/item_post.xml
@@ -142,10 +142,53 @@
</RelativeLayout>
+ <LinearLayout
+ android:id="@+id/spoiler_flair_linear_layout_item_post"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:visibility="gone">
+
+ <com.libRG.CustomTextView
+ android:id="@+id/spoiler_custom_text_view_item_post"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginStart="16dp"
+ android:text="@string/spoiler"
+ android:textSize="12sp"
+ android:textColor="@color/primaryTextColor"
+ android:padding="4dp"
+ android:background="@color/textColorPrimaryDark"
+ android:visibility="gone"
+ app:lib_setRadius="3dp"
+ app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
+ app:lib_setRoundedView="true"
+ app:lib_setShape="rectangle" />
+
+ <com.libRG.CustomTextView
+ android:id="@+id/flair_custom_text_view_item_post"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginStart="16dp"
+ android:textSize="12sp"
+ android:textColor="@color/primaryTextColor"
+ android:padding="4dp"
+ android:background="@color/textColorPrimaryDark"
+ android:visibility="gone"
+ app:lib_setRadius="3dp"
+ app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
+ app:lib_setRoundedView="true"
+ app:lib_setShape="rectangle" />
+
+ </LinearLayout>
+
<TextView
android:id="@+id/link_text_view_item_post"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:textSize="12sp"
@@ -155,7 +198,6 @@
android:id="@+id/image_view_wrapper_item_post"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
android:visibility="gone">
<ProgressBar
diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml
index 4a40eb1b..babdcdbf 100644
--- a/app/src/main/res/layout/item_post_detail.xml
+++ b/app/src/main/res/layout/item_post_detail.xml
@@ -134,10 +134,53 @@
</RelativeLayout>
+ <LinearLayout
+ android:id="@+id/spoiler_flair_linear_layout_item_post_detail"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:visibility="gone">
+
+ <com.libRG.CustomTextView
+ android:id="@+id/spoiler_custom_text_view_item_post_detail"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginStart="16dp"
+ android:text="@string/spoiler"
+ android:textSize="12sp"
+ android:textColor="@color/primaryTextColor"
+ android:padding="4dp"
+ android:background="@color/textColorPrimaryDark"
+ android:visibility="gone"
+ app:lib_setRadius="3dp"
+ app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
+ app:lib_setRoundedView="true"
+ app:lib_setShape="rectangle" />
+
+ <com.libRG.CustomTextView
+ android:id="@+id/flair_custom_text_view_item_post_detail"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginStart="16dp"
+ android:textSize="12sp"
+ android:textColor="@color/primaryTextColor"
+ android:padding="4dp"
+ android:background="@color/textColorPrimaryDark"
+ android:visibility="gone"
+ app:lib_setRadius="3dp"
+ app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
+ app:lib_setRoundedView="true"
+ app:lib_setShape="rectangle" />
+
+ </LinearLayout>
+
<TextView
android:id="@+id/link_text_view_item_post_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:textSize="12sp"
@@ -147,7 +190,6 @@
android:id="@+id/image_view_wrapper_item_post_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
android:visibility="gone">
<com.santalu.aspectratioimageview.AspectRatioImageView