aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_comment.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-09-18 08:01:08 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-09-18 08:01:08 +0000
commit50da29ad8c507898b337b0ebcb84b34ef1680978 (patch)
tree15c6efd29ac053c2aa21cf52d836f5d97fa60bbb /app/src/main/res/layout/item_comment.xml
parentc1adf5153798a8380eec1e9165bf493e2fe0ba7e (diff)
downloadinfinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar
infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.gz
infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.bz2
infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.lz
infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.xz
infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.zst
infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.zip
Saving and unsaving comments are now available. Use xml thumbtack to avoid crashes on low resolution devices. Add a subreddit link in Settings -> About.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_comment.xml31
1 files changed, 25 insertions, 6 deletions
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml
index 16c4dafa..0c103825 100644
--- a/app/src/main/res/layout/item_comment.xml
+++ b/app/src/main/res/layout/item_comment.xml
@@ -20,7 +20,7 @@
android:layout_marginBottom="12dp"
android:orientation="vertical">
- <LinearLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
@@ -28,19 +28,25 @@
<TextView
android:id="@+id/author_text_view_item_post_comment"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
android:layout_marginEnd="16dp"
- android:textColor="@color/colorPrimaryDarkDayNightTheme"/>
+ android:textColor="@color/colorPrimaryDarkDayNightTheme"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/comment_time_text_view_item_post_comment"
+ app:layout_constraintHorizontal_bias="0" />
<TextView
android:id="@+id/comment_time_text_view_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:gravity="end" />
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
- </LinearLayout>
+ </androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/comment_markdown_view_item_post_comment"
@@ -108,6 +114,19 @@
android:src="@drawable/ic_outline_more_vert_24px"
android:tint="@android:color/tab_indicator_text"
android:visibility="gone"
+ app:layout_constraintEnd_toStartOf="@+id/save_button_item_post_comment"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"/>
+
+ <ImageView
+ android:id="@+id/save_button_item_post_comment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="16dp"
+ android:background="?actionBarItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ android:tint="@android:color/tab_indicator_text"
app:layout_constraintEnd_toStartOf="@+id/expand_button_item_post_comment"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>