project64/Android/res/xml/preferences_global.xml

77 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
***********************************************************************************
RECOMMENDED PRACTICES FOR DESIGNERS & DEVELOPERS:
Wherever possible, use Android's built-in Preference framework for defining global
user settings and the menu interface that supports them:
http://developer.android.com/guide/topics/ui/settings.html
http://developer.android.com/design/patterns/settings.html
Please follow our naming convention (casing and underscores) for all Preferences:
<CheckBoxPreference
android:key="myKey"
android:title="@string/myKey_title"
android:summary="@string/myKey_summary"
...
/>
<ListPreference
...
android:entries="@array/myKey_entries"
android:entryValues="@array/myKey_values"
android:defaultValue="@string/myKey_default"
...
/>
<emu.project64.MyCustomPreference
...
project64:myAttribute="@string/myKey_myAttribute"
...
/>
Strings should never be hard-coded into this file, with the exception perhaps of
boolean default values. Instead, define all strings as resources in:
res/values/strings.xml
To improve code readability, define all arrays as resources in:
res/values/arrays.xml
Define default array values below the arrays themselves in arrays.xml, rather than
in strings.xml. This makes it easy to keep arrays and their default values
synchronized.
To minimize app size, consider using Android's built-in resources when possible.
For example, consider icon resources in "@android:drawable/..." instead of custom
resources in "@drawable/...".
***********************************************************************************
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:project64="http://schemas.android.com/apk/res/emu.project64"
android:key="screenRoot" >
<PreferenceCategory
android:key="categoryDisplay"
android:title="@string/categoryDisplay_title" >
<CheckBoxPreference
android:defaultValue="false"
android:key="displayFps"
android:summary="@string/displayFps_summary"
android:title="@string/displayFps_title" />
</PreferenceCategory>
<PreferenceCategory
android:key="categoryAudio"
android:title="@string/categoryAudio_title" >
<CheckBoxPreference
android:defaultValue="true"
android:key="enableAudio"
android:summary="@string/audioEnabled_summary"
android:title="@string/audioEnabled_title" />
</PreferenceCategory>
<PreferenceCategory
android:key="categoryData"
android:title="@string/categoryData_title" >
<emu.project64.preference.PathPreference
android:defaultValue="@string/pathGameSaves_default"
android:key="pathGameSaves"
android:title="@string/pathGameSaves_title"
project64:selectionMode="0" />
</PreferenceCategory>
</PreferenceScreen>