aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-17 16:21:50 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-17 16:21:50 +0000
commit2f27074478538206dc8cb1f762365535b9de20f0 (patch)
treef54c251e204c8f40938016b2f3328a92696ff23f /app/src/main/res/layout
parent1fc2848813b521632d459e0a80cfc2e9d2c31451 (diff)
downloadinfinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.tar
infinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.tar.gz
infinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.tar.bz2
infinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.tar.lz
infinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.tar.xz
infinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.tar.zst
infinity-for-reddit-2f27074478538206dc8cb1f762365535b9de20f0.zip
Start implementing markdown toolbar.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_comment.xml93
-rw-r--r--app/src/main/res/layout/item_markdown_bottom_bar.xml9
2 files changed, 63 insertions, 39 deletions
diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml
index 1fe93f50..69e0a4d7 100644
--- a/app/src/main/res/layout/activity_comment.xml
+++ b/app/src/main/res/layout/activity_comment.xml
@@ -23,56 +23,71 @@
</com.google.android.material.appbar.AppBarLayout>
- <androidx.core.widget.NestedScrollView
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <LinearLayout
+ <androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
+ android:layout_height="0dp"
+ android:layout_weight="1">
- <TextView
- android:id="@+id/comment_parent_markwon_view_comment_activity"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="16dp"
- android:textSize="?attr/title_font_16"
- android:fontFamily="?attr/content_font_family" />
+ android:layout_height="match_parent"
+ android:orientation="vertical">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/content_markdown_view_comment_activity"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginBottom="8dp"
- android:visibility="gone" />
+ <TextView
+ android:id="@+id/comment_parent_markwon_view_comment_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:textSize="?attr/title_font_16"
+ android:fontFamily="?attr/content_font_family" />
- <View
- android:id="@+id/divider_comment_activity"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginBottom="16dp" />
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/content_markdown_view_comment_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginBottom="8dp"
+ android:visibility="gone" />
- <EditText
- android:id="@+id/comment_edit_text_comment_activity"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#00000000"
- android:gravity="top"
- android:hint="@string/write_comment_hint"
- android:inputType="textCapSentences|textMultiLine"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
- android:paddingBottom="16dp"
- android:textColor="?attr/primaryTextColor"
- android:textSize="?attr/content_font_18"
- android:fontFamily="?attr/content_font_family" />
+ <View
+ android:id="@+id/divider_comment_activity"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_marginBottom="16dp" />
- </LinearLayout>
+ <EditText
+ android:id="@+id/comment_edit_text_comment_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#00000000"
+ android:gravity="top"
+ android:hint="@string/write_comment_hint"
+ android:inputType="textCapSentences|textMultiLine"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="16dp"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/content_font_18"
+ android:fontFamily="?attr/content_font_family" />
+
+ </LinearLayout>
+
+ </androidx.core.widget.NestedScrollView>
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/markdown_bottom_bar_recycler_view_comment_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:scrollbars="horizontal"
+ android:layout_gravity="bottom" />
- </androidx.core.widget.NestedScrollView>
+ </LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_markdown_bottom_bar.xml b/app/src/main/res/layout/item_markdown_bottom_bar.xml
new file mode 100644
index 00000000..53ef5b84
--- /dev/null
+++ b/app/src/main/res/layout/item_markdown_bottom_bar.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ImageView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:background="?actionBarItemBackground"
+ android:clickable="true"
+ android:focusable="true" /> \ No newline at end of file