mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-09-30 12:18:38 +02:00
0ceecbba4f
Adds a setting to letterbox the surface with black bars to 16:9 or 21:9 aspect ratio to avoid stretching out the rendered image
40 lines
1.4 KiB
XML
40 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:keepScreenOn="true"
|
|
android:background="@android:color/black"
|
|
tools:context=".EmulationActivity">
|
|
|
|
<emu.skyline.views.FixedRatioSurfaceView
|
|
android:id="@+id/game_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center" />
|
|
|
|
<emu.skyline.input.onscreen.OnScreenControllerView
|
|
android:id="@+id/on_screen_controller_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/perf_stats"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginTop="5dp"
|
|
android:textColor="#9fffff00" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/on_screen_controller_toggle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="bottom|end"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_show"
|
|
app:tint="#40FFFFFF"
|
|
tools:ignore="ContentDescription" />
|
|
</FrameLayout>
|