diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-06-22 05:16:17 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-06-22 05:16:17 +0000 |
commit | 11ec08c12fbbf20a52dae50359fa520c29d66367 (patch) | |
tree | b36b825ab851191dbb7e8d0a6ca79ae76f223d22 /app/src/main/res/layout-land | |
parent | e222fbc5b1e9592f66abc24fa3a3b43ced4db52f (diff) | |
download | infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.tar infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.tar.gz infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.tar.bz2 infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.tar.lz infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.tar.xz infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.tar.zst infinity-for-reddit-11ec08c12fbbf20a52dae50359fa520c29d66367.zip |
Implement two pane layout in ViewPostDetailFragment to separate post detail and comments. Fix bugs related to separating CommentAndPostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main/res/layout-land')
-rw-r--r-- | app/src/main/res/layout-land/fragment_view_post_detail.xml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app/src/main/res/layout-land/fragment_view_post_detail.xml b/app/src/main/res/layout-land/fragment_view_post_detail.xml new file mode 100644 index 00000000..dd7e1ac5 --- /dev/null +++ b/app/src/main/res/layout-land/fragment_view_post_detail.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + xmlns:app="http://schemas.android.com/apk/res-auto" + tools:context=".fragments.ViewPostDetailFragment"> + + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_view_post_detail_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clickable="true" + android:focusable="true"> + + <ml.docilealligator.infinityforreddit.customviews.CustomToroContainer + android:id="@+id/post_detail_recycler_view_view_post_detail_fragment" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:paddingBottom="144dp" + android:clipToPadding="false" /> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/comments_recycler_view_view_post_detail_fragment" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:paddingBottom="144dp" + android:clipToPadding="false" /> + + </LinearLayout> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + + <LinearLayout + android:id="@+id/fetch_post_info_linear_layout_view_post_detail_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical" + android:visibility="gone"> + + <ImageView + android:id="@+id/fetch_post_info_image_view_view_post_detail_fragment" + android:layout_width="150dp" + android:layout_height="wrap_content" /> + + <TextView + android:id="@+id/fetch_post_info_text_view_view_post_detail_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:gravity="center" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + </LinearLayout> + +</FrameLayout>
\ No newline at end of file |