diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-17 16:21:50 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-17 16:21:50 +0000 |
commit | 2f27074478538206dc8cb1f762365535b9de20f0 (patch) | |
tree | f54c251e204c8f40938016b2f3328a92696ff23f /app/src/main/res/layout/activity_comment.xml | |
parent | 1fc2848813b521632d459e0a80cfc2e9d2c31451 (diff) | |
download | infinity-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 '')
-rw-r--r-- | app/src/main/res/layout/activity_comment.xml | 93 |
1 files changed, 54 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 |