Switch to using a view specific fix

- Change from overriding the entire style to adding an override for the specific view
This commit is contained in:
sykomaniac 2023-06-26 21:27:18 +01:00
parent 806df69ba4
commit b74f09f88b
3 changed files with 64 additions and 7 deletions

View file

@ -0,0 +1,63 @@
<RelativeLayout
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"
>
<androidx.drawerlayout.widget.DrawerLayout
android:id="@+id/emulator_drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:defaultFocusHighlightEnabled="false"
>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<SurfaceView
android:id="@+id/emulator_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="false"
android:focusableInTouchMode="false"
/>
<com.virtualapplications.play.VirtualPadView
android:id="@+id/emulator_virtualpad"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="false"
android:focusableInTouchMode="false" />
<TextView
android:id="@+id/emulator_fps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/emulator_profile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:typeface="monospace"
/>
<!--
This empty view is needed here to make sure drawer
scrolling is smooth on Android 5.0+
-->
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</FrameLayout>
<fragment
android:name="com.virtualapplications.play.EmulatorDrawerFragment"
android:id="@+id/emulator_drawer"
android:layout_width="@dimen/emulator_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:visibility="gone"
tools:layout="@layout/fragment_emulator_drawer"
/>
</androidx.drawerlayout.widget.DrawerLayout>
</RelativeLayout>

View file

@ -37,7 +37,7 @@
android:id="@+id/emulator_profile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_gravity="end"
android:typeface="monospace"
/>
<!--

View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="BaseTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:defaultFocusHighlightEnabled">false</item>
</style>
</resources>