diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt index c1d0f6297a..b0121ad132 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt @@ -454,6 +454,7 @@ class GamesFragment : Fragment() { val leftInsets = barInsets.left + cutoutInsets.left val rightInsets = barInsets.right + cutoutInsets.right + val topInsets = barInsets.top + cutoutInsets.top val mlpSwipe = binding.swipeRefresh.layoutParams as ViewGroup.MarginLayoutParams if (view.getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) { mlpSwipe.leftMargin = leftInsets @@ -464,6 +465,12 @@ class GamesFragment : Fragment() { } binding.swipeRefresh.layoutParams = mlpSwipe + val mlpHeader = binding.header.layoutParams as ViewGroup.MarginLayoutParams + mlpHeader.leftMargin += leftInsets + mlpHeader.rightMargin += rightInsets + mlpHeader.topMargin += if (!isLandscape) topInsets else 0 + binding.header.layoutParams = mlpHeader + binding.noticeText.updatePadding(bottom = spacingNavigation) binding.header.updatePadding(top = cutoutInsets.top + resources.getDimensionPixelSize(R.dimen.spacing_large) + if (isLandscape) barInsets.top else 0) binding.gridGames.updatePadding( diff --git a/src/android/app/src/main/res/layout-land/fragment_games.xml b/src/android/app/src/main/res/layout-land/fragment_games.xml new file mode 100644 index 0000000000..68ccb86b57 --- /dev/null +++ b/src/android/app/src/main/res/layout-land/fragment_games.xml @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file