diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-14 01:06:31 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-14 01:06:31 +0000 |
commit | acaece6e3e63fba9f7a38899e3fb3079c9dd12c0 (patch) | |
tree | 102780f6c4de9353911aee3d342dd39f36ed0fee /app/src/main/res/layout | |
parent | 4cf401756f4207ae43238cde1522d18d6824b6c4 (diff) | |
download | infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.gz infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.bz2 infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.lz infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.xz infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.zst infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.zip |
Viewing comment's full markdown is available.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_comment_full_markdown.xml | 42 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml | 19 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_comment_full_markdown.xml b/app/src/main/res/layout/activity_comment_full_markdown.xml new file mode 100644 index 00000000..53ac6ea6 --- /dev/null +++ b/app/src/main/res/layout/activity_comment_full_markdown.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/coordinator_layout_comment_full_markdown_activity" + tools:context=".Activity.CommentFullMarkdownActivity"> + + <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appbar_layout_comment_full_markdown_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + + <com.google.android.material.appbar.CollapsingToolbarLayout + android:id="@+id/collapsing_toolbar_layout_comment_full_markdown_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_scrollFlags="scroll|enterAlways" + app:titleEnabled="false" + app:toolbarId="@+id/toolbar_comment_full_markdown_activity"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar_comment_full_markdown_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator" /> + + </com.google.android.material.appbar.CollapsingToolbarLayout> + + </com.google.android.material.appbar.AppBarLayout> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/content_markdown_view_comment_full_markdown_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + +</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file 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 index 5d8c86d0..6873171b 100644 --- a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml @@ -86,6 +86,25 @@ android:fontFamily="?attr/font_family" /> <TextView + android:id="@+id/view_full_markdown_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_full_markdown_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/view_full_comment_markdown" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView android:id="@+id/report_view_comment_more_bottom_sheet_fragment" android:layout_width="match_parent" android:layout_height="wrap_content" |