Android: Use dialog menu instead of appbar
Fixes it getting messed up in landscape orientation.
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="64dp"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:text="Game Title"
|
||||
@ -35,6 +36,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="64dp"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:paddingBottom="8px"
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<group android:id="@+id/actions">
|
||||
<item
|
||||
android:id="@+id/reset"
|
||||
android:title="Reset" />
|
||||
<item
|
||||
android:id="@+id/quick_load"
|
||||
android:title="Quick Load" />
|
||||
<item
|
||||
android:id="@+id/quick_save"
|
||||
android:title="Quick Save" />
|
||||
</group>
|
||||
<group android:id="@+id/quick_settings">
|
||||
<item
|
||||
android:id="@+id/change_disc"
|
||||
android:title="Change Disc" />
|
||||
<item
|
||||
android:id="@+id/enable_speed_limiter"
|
||||
android:title="Enable Speed Limiter"
|
||||
android:checkable="true" />
|
||||
<item
|
||||
android:id="@+id/show_controller"
|
||||
android:checkable="true"
|
||||
android:title="Show Controller" />
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:title="Settings" />
|
||||
<item
|
||||
android:id="@+id/quit"
|
||||
android:title="Quit" />
|
||||
</group>
|
||||
</menu>
|
||||
@ -125,4 +125,14 @@
|
||||
<item>PerGame</item>
|
||||
<item>PerGameTitle</item>
|
||||
</string-array>
|
||||
<string-array name="emulation_menu">
|
||||
<item>Quick Load</item>
|
||||
<item>Quick Save</item>
|
||||
<item>Reset</item>
|
||||
<item>Change Disc</item>
|
||||
<item>Toggle Speed Limiter</item>
|
||||
<item>Toggle Touch Controller</item>
|
||||
<item>Settings</item>
|
||||
<item>Quit</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user