From 216e2367c63c0b8063e99cdb45da06dd3e35f895 Mon Sep 17 00:00:00 2001 From: Vasily Date: Wed, 22 Aug 2018 08:32:58 +0300 Subject: [PATCH] Video details tablet layout --- .../fragments/detail/VideoDetailFragment.java | 7 +- .../fragment_video_detail.xml | 505 ++++++++++++++++++ 2 files changed, 510 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/layout-large-land/fragment_video_detail.xml diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index d91502cdd..bb642cefa 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -179,7 +179,7 @@ public class VideoDetailFragment private TextView thumbsDisabledTextView; private TextView nextStreamTitle; - private LinearLayout relatedStreamRootLayout; + private View relatedStreamRootLayout; private LinearLayout relatedStreamsView; private ImageButton relatedStreamExpandButton; @@ -623,7 +623,10 @@ public class VideoDetailFragment infoItemBuilder.buildView(relatedStreamsView, info.getNextVideo())); relatedStreamsView.addView(getSeparatorView()); relatedStreamRootLayout.setVisibility(View.VISIBLE); - } else nextStreamTitle.setVisibility(View.GONE); + } else { + nextStreamTitle.setVisibility(View.GONE); + relatedStreamRootLayout.setVisibility(View.GONE); + } if (info.getRelatedStreams() != null && !info.getRelatedStreams().isEmpty() && showRelatedStreams) { diff --git a/app/src/main/res/layout-large-land/fragment_video_detail.xml b/app/src/main/res/layout-large-land/fragment_video_detail.xml new file mode 100644 index 000000000..4d3914947 --- /dev/null +++ b/app/src/main/res/layout-large-land/fragment_video_detail.xml @@ -0,0 +1,505 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +