mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Fix naming convention for container layouts
This commit is contained in:
committed by
Niccolò Betto
parent
27200bd5a9
commit
d6252a946b
@ -516,21 +516,21 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
||||
if (it.isSeparating) {
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
|
||||
if (it.orientation == FoldingFeature.Orientation.HORIZONTAL) {
|
||||
binding.onScreenGameView.layoutParams.height = it.bounds.top
|
||||
binding.controllerViewContainer.layoutParams.height = it.bounds.bottom - 48.toPx
|
||||
binding.controllerViewContainer.updatePadding(0, 0, 0, 24.toPx)
|
||||
binding.gameViewContainer.layoutParams.height = it.bounds.top
|
||||
binding.overlayViewContainer.layoutParams.height = it.bounds.bottom - 48.toPx
|
||||
binding.overlayViewContainer.updatePadding(0, 0, 0, 24.toPx)
|
||||
}
|
||||
}
|
||||
it.isSeparating
|
||||
} ?: false
|
||||
if (!isFolding) {
|
||||
binding.onScreenGameView.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
|
||||
binding.controllerViewContainer.updatePadding(0, 0, 0, 0)
|
||||
binding.controllerViewContainer.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
|
||||
binding.gameViewContainer.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
|
||||
binding.overlayViewContainer.updatePadding(0, 0, 0, 0)
|
||||
binding.overlayViewContainer.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
|
||||
requestedOrientation = emulationSettings.orientation
|
||||
}
|
||||
binding.onScreenGameView.requestLayout()
|
||||
binding.controllerViewContainer.requestLayout()
|
||||
binding.gameViewContainer.requestLayout()
|
||||
binding.overlayViewContainer.requestLayout()
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10,9 +10,9 @@
|
||||
tools:ignore="RtlHardcoded">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/on_screen_game_view"
|
||||
android:id="@+id/game_view_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<emu.skyline.views.FixedRatioSurfaceView
|
||||
android:id="@+id/game_view"
|
||||
@ -22,7 +22,7 @@
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/controller_view_container"
|
||||
android:id="@+id/overlay_view_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="bottom">
|
||||
|
Reference in New Issue
Block a user