From 40a2df847b1d05cb1bc95e14da2d20d41c6597d7 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 13 Jun 2021 21:56:06 +0200 Subject: [PATCH] Move tags layout at the bottom, use multiple lines --- .../fragments/detail/DescriptionFragment.java | 4 +-- app/src/main/res/layout/item_metadata.xml | 3 +- .../main/res/layout/item_metadata_tags.xml | 35 +++++++++++-------- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java index 5f1cbc365..8a1036472 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java @@ -154,8 +154,6 @@ public class DescriptionFragment extends BaseFragment { addMetadataItem(inflater, layout, false, R.string.metadata_category, streamInfo.getCategory()); - addTagsMetadataItem(inflater, layout); - addMetadataItem(inflater, layout, false, R.string.metadata_licence, streamInfo.getLicence()); @@ -177,6 +175,8 @@ public class DescriptionFragment extends BaseFragment { R.string.metadata_host, streamInfo.getHost()); addMetadataItem(inflater, layout, true, R.string.metadata_thumbnail_url, streamInfo.getThumbnailUrl()); + + addTagsMetadataItem(inflater, layout); } private void addMetadataItem(final LayoutInflater inflater, diff --git a/app/src/main/res/layout/item_metadata.xml b/app/src/main/res/layout/item_metadata.xml index e49537c31..31dedd880 100644 --- a/app/src/main/res/layout/item_metadata.xml +++ b/app/src/main/res/layout/item_metadata.xml @@ -4,8 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="6dp" - android:paddingBottom="6dp"> + android:paddingVertical="6dp"> - + + + android:layout_marginTop="8dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/metadata_type_view" /> - - - \ No newline at end of file + \ No newline at end of file