aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
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