From d2d7dbfea31ee6524afa6a108ffdeb1c83f56403 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 19 Jul 2020 09:49:19 +0200 Subject: Rotation fixes --- .../antennapod/fragment/FeedInfoFragment.java | 4 ++ app/src/main/res/layout-sw720dp/main.xml | 46 ++++++++++++++++++++++ app/src/main/res/layout-w800dp/main.xml | 46 ---------------------- app/src/main/res/layout/feedinfo.xml | 2 + app/src/main/res/layout/feeditemlist_header.xml | 1 + 5 files changed, 53 insertions(+), 46 deletions(-) create mode 100644 app/src/main/res/layout-sw720dp/main.xml delete mode 100644 app/src/main/res/layout-w800dp/main.xml diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java index a268b8b58..071fa9f54 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java @@ -69,6 +69,7 @@ public class FeedInfoFragment extends Fragment { private TextView txtvUrl; private TextView txtvAuthorHeader; private ImageView imgvBackground; + private View infoContainer; private View header; private Menu optionsMenu; private ToolbarIconTintManager iconTintManager; @@ -124,6 +125,7 @@ public class FeedInfoFragment extends Fragment { txtvAuthorHeader = root.findViewById(R.id.txtvAuthor); imgvBackground = root.findViewById(R.id.imgvBackground); header = root.findViewById(R.id.headerContainer); + infoContainer = root.findViewById(R.id.infoContainer); root.findViewById(R.id.butShowInfo).setVisibility(View.INVISIBLE); root.findViewById(R.id.butShowSettings).setVisibility(View.INVISIBLE); // https://github.com/bumptech/glide/issues/529 @@ -164,6 +166,8 @@ public class FeedInfoFragment extends Fragment { super.onConfigurationChanged(newConfig); int horizontalSpacing = (int) getResources().getDimension(R.dimen.additional_horizontal_spacing); header.setPadding(horizontalSpacing, header.getPaddingTop(), horizontalSpacing, header.getPaddingBottom()); + infoContainer.setPadding(horizontalSpacing, infoContainer.getPaddingTop(), + horizontalSpacing, infoContainer.getPaddingBottom()); } private void showFeed() { diff --git a/app/src/main/res/layout-sw720dp/main.xml b/app/src/main/res/layout-sw720dp/main.xml new file mode 100644 index 000000000..79b7213e0 --- /dev/null +++ b/app/src/main/res/layout-sw720dp/main.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-w800dp/main.xml b/app/src/main/res/layout-w800dp/main.xml deleted file mode 100644 index 79b7213e0..000000000 --- a/app/src/main/res/layout-w800dp/main.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/feedinfo.xml b/app/src/main/res/layout/feedinfo.xml index fa6aac251..dd349c15c 100644 --- a/app/src/main/res/layout/feedinfo.xml +++ b/app/src/main/res/layout/feedinfo.xml @@ -62,6 +62,8 @@