aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-01-30 12:38:35 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-01-30 12:38:35 +0000
commitff5a60c8276071db92e4a584f6a155fdb9048f8c (patch)
treed972890e4fd7734fda86f597b430b3b5b0444e53 /app/src/main/res/layout
parent5e401a6a96f4b83a79685907a6bee4997ff7e183 (diff)
downloadinfinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.tar
infinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.tar.gz
infinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.tar.bz2
infinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.tar.lz
infinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.tar.xz
infinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.tar.zst
infinity-for-reddit-ff5a60c8276071db92e4a584f6a155fdb9048f8c.zip
Copying comments is now available. Some UI tweaks.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml86
-rw-r--r--app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml40
-rw-r--r--app/src/main/res/layout/item_comment.xml7
3 files changed, 89 insertions, 44 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
new file mode 100644
index 00000000..397d8439
--- /dev/null
+++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
@@ -0,0 +1,86 @@
+<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:overScrollMode="never"
+ android:paddingBottom="8dp">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/edit_text_view_comment_more_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:drawableStart="@drawable/ic_edit_24dp"
+ android:drawablePadding="48dp"
+ android:focusable="true"
+ android:paddingStart="32dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="32dp"
+ android:paddingBottom="16dp"
+ android:text="@string/edit"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:visibility="gone" />
+
+ <TextView
+ android:id="@+id/delete_text_view_comment_more_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:drawableStart="@drawable/ic_delete_24dp"
+ android:drawablePadding="48dp"
+ android:focusable="true"
+ android:paddingStart="32dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="32dp"
+ android:paddingBottom="16dp"
+ android:text="@string/delete"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:visibility="gone" />
+
+ <TextView
+ android:id="@+id/save_text_view_comment_more_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:drawableStart="@drawable/ic_share_24dp"
+ android:drawablePadding="48dp"
+ android:focusable="true"
+ android:gravity="center_vertical"
+ android:paddingStart="32dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="32dp"
+ android:paddingBottom="16dp"
+ android:text="@string/share"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="?attr/font_default" />
+
+ <TextView
+ android:id="@+id/copy_text_view_comment_more_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:drawableStart="@drawable/ic_copy_24dp"
+ android:drawablePadding="48dp"
+ android:focusable="true"
+ android:gravity="center_vertical"
+ android:paddingStart="32dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="32dp"
+ android:paddingBottom="16dp"
+ android:text="@string/copy_text"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="?attr/font_default" />
+
+ </LinearLayout>
+
+</androidx.core.widget.NestedScrollView> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml b/app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml
deleted file mode 100644
index 4bc3c547..00000000
--- a/app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="8dp"
- android:orientation="vertical"
- tools:context=".Fragment.ModifyCommentBottomSheetFragment">
-
- <TextView
- android:id="@+id/edit_text_view_modify_comment_bottom_sheet_fragment"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
- android:paddingStart="32dp"
- android:paddingEnd="32dp"
- android:text="@string/edit"
- android:textColor="@color/primaryTextColor"
- android:textSize="?attr/font_default"
- android:clickable="true"
- android:focusable="true"
- android:background="?attr/selectableItemBackground" />
-
- <TextView
- android:id="@+id/delete_text_view_modify_comment_bottom_sheet_fragment"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
- android:paddingStart="32dp"
- android:paddingEnd="32dp"
- android:text="@string/delete"
- android:textColor="@color/primaryTextColor"
- android:textSize="?attr/font_default"
- android:clickable="true"
- android:focusable="true"
- android:background="?attr/selectableItemBackground" />
-
-</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml
index faf11a07..c303efaa 100644
--- a/app/src/main/res/layout/item_comment.xml
+++ b/app/src/main/res/layout/item_comment.xml
@@ -154,7 +154,6 @@
android:clickable="true"
android:focusable="true"
android:src="@drawable/ic_more_vert_grey_24dp"
- android:visibility="gone"
app:layout_constraintEnd_toStartOf="@+id/expand_button_item_post_comment"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
@@ -198,11 +197,11 @@
android:clickable="true"
android:focusable="true"
android:src="@drawable/ic_reply_grey_24dp"
- app:layout_constraintEnd_toStartOf="@id/share_button_item_post_comment"
+ app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
- <ImageView
+ <!--<ImageView
android:id="@+id/share_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -214,7 +213,7 @@
android:src="@drawable/ic_share_grey_24dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"/>
+ app:layout_constraintBottom_toBottomOf="parent"/>-->
</androidx.constraintlayout.widget.ConstraintLayout>