Permalink
Browse files

front: changed defaults again

  • Loading branch information...
fzurita committed Mar 12, 2016
1 parent 8032a3d commit 64b8cd040442ad7f1831658d8f91198b1bed0ea5
Showing with 290 additions and 2 deletions.
  1. +2 −2 res/xml/preferences_audio.xml
  2. +288 −0 res/xml/preferences_global.xml
@@ -70,10 +70,10 @@
android:title="@string/audioSLESBufferSize_title" />
<paulscode.android.mupen64plusae.preference.SeekBarPreference
android:defaultValue="20"
android:defaultValue="15"
android:key="audioSLESBufferNbr2"
android:title="@string/audioSLESBufferNbr_title"
mupen64:maximumValue="50"
mupen64:maximumValue="75"
mupen64:minimumValue="2"
mupen64:saveType="string"
mupen64:stepSize="1"
@@ -0,0 +1,288 @@
<?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:
<android.support.v7.preference.CheckBoxPreference
android:key="myKey"
android:title="@string/myKey_title"
android:summary="@string/myKey_summary"
...
/>
<paulscode.android.mupen64plusae.preference.CompatListPreference
...
android:entries="@array/myKey_entries"
android:entryValues="@array/myKey_values"
android:defaultValue="@string/myKey_default"
...
/>
<paulscode.android.mupen64plusae.MyCustomPreference
...
mupen64: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/...".
***********************************************************************************
-->
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mupen64="http://schemas.android.com/apk/res/org.mupen64plusae.v3.alpha"
android:key="screenRoot" >
<android.support.v7.preference.PreferenceCategory
android:key="categoryLibrary"
android:title="@string/categoryLibrary_title" >
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="true"
android:key="showRecentlyPlayed"
android:summary="@string/showRecentlyPlayed_summary"
android:title="@string/showRecentlyPlayed_title" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="true"
android:key="showFullNames"
android:summary="@string/showFullNames_summary"
android:title="@string/showFullNames_title" />
</android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.PreferenceCategory
android:key="categoryDisplay"
android:title="@string/categoryDisplay_title" >
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/displayOrientation_default"
android:entries="@array/displayOrientation_entries"
android:entryValues="@array/displayOrientation_values"
android:key="displayOrientation"
android:summary="@string/selectedValue"
android:title="@string/displayOrientation_title" />
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/displayPosition_default"
android:entries="@array/displayPosition_entries"
android:entryValues="@array/displayPosition_values"
android:key="displayPosition"
android:summary="@string/selectedValue"
android:title="@string/displayPosition_title" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="false"
android:key="displayImmersiveMode"
android:summary="@string/displayImmersiveMode_summary"
android:title="@string/displayImmersiveMode_title" />
<paulscode.android.mupen64plusae.preference.SeekBarPreference
android:defaultValue="80"
android:key="displayActionBarTransparency"
android:title="@string/displayActionBarTransparency_title"
mupen64:maximumValue="100"
mupen64:stepSize="10"
mupen64:units="%" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="false"
android:key="displayFps"
android:summary="@string/displayFps_summary"
android:title="@string/displayFps_title" />
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/videoHardwareType_default"
android:entries="@array/videoHardwareType_entries"
android:entryValues="@array/videoHardwareType_values"
android:key="videoHardwareType"
android:summary="@string/selectedValue"
android:title="@string/videoHardwareType_title" />
<android.support.v7.preference.EditTextPreference
android:defaultValue="-1.5"
android:inputType="numberDecimal|numberSigned"
android:key="videoPolygonOffset"
android:summary="@string/videoPolygonOffset_summary"
android:title="@string/videoPolygonOffset_title" />
</android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.PreferenceCategory
android:key="categoryAudio"
android:title="@string/categoryAudio_title" >
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/audioPlugin_default"
android:entries="@array/audioPlugin_entries"
android:entryValues="@array/audioPlugin_values"
android:key="audioPlugin"
android:summary="@string/selectedValue"
android:title="@string/audioPlugin_title" />
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/audioSDLBufferSize_default"
android:entries="@array/audioSDLBufferSize_entries"
android:entryValues="@array/audioSDLBufferSize_values"
android:key="audioSDLBufferSize"
android:summary="@string/selectedValue"
android:title="@string/audioSDLBufferSize_title" />
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/audioSLESBufferSize_default"
android:entries="@array/audioSLESBufferSize_entries"
android:entryValues="@array/audioSLESBufferSize_values"
android:key="audioSLESBufferSize"
android:summary="@string/selectedValue"
android:title="@string/audioSLESBufferSize_title" />
<paulscode.android.mupen64plusae.preference.SeekBarPreference
android:defaultValue="15"
android:key="audioSLESBufferNbr2"
android:title="@string/audioSLESBufferNbr_title"
mupen64:maximumValue="75"
mupen64:minimumValue="2"
mupen64:stepSize="1"
mupen64:saveType="string"
mupen64:units=" buffers" />
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/audioSLESRate_default"
android:entries="@array/audioSLESRate_entries"
android:entryValues="@array/audioSLESRate_values"
android:key="audioSLESSamplingRate"
android:summary="@string/selectedValue"
android:title="@string/audioSLESRate_title" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="true"
android:key="audioSynchronize"
android:summary="@string/audioSynchronize_summary"
android:title="@string/audioSynchronize_title" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="false"
android:key="audioSwapChannels"
android:summary="@string/audioSwapChannels_summary"
android:title="@string/audioSwapChannels_title" />
</android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.PreferenceCategory
android:key="categoryTouchscreen"
android:title="@string/categoryTouchscreen_title" >
<paulscode.android.mupen64plusae.preference.SeekBarPreference
android:defaultValue="100"
android:key="touchscreenScale"
android:title="@string/touchscreenScale_title"
mupen64:maximumValue="400"
mupen64:minimumValue="50"
mupen64:stepSize="1"
mupen64:units="%" />
<paulscode.android.mupen64plusae.preference.SeekBarPreference
android:defaultValue="100"
android:key="touchscreenTransparency"
android:title="@string/touchscreenTransparency_title"
mupen64:maximumValue="100"
mupen64:stepSize="10"
mupen64:units="%" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="false"
android:key="touchscreenFeedback"
android:summary="@string/touchscreenFeedback_summary"
android:title="@string/touchscreenFeedback_title" />
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/touchscreenAutoHold_default"
android:entries="@array/touchscreenAutoHold_entries"
android:entryValues="@array/touchscreenAutoHold_values"
android:key="touchscreenAutoHold"
android:summary="@string/selectedValue"
android:title="@string/touchscreenAutoHold_title" />
</android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.PreferenceCategory
android:key="categoryInput"
android:title="@string/categoryInput_title" >
<paulscode.android.mupen64plusae.preference.CompatListPreference
android:defaultValue="@string/navigationMode_default"
android:entries="@array/navigationMode_entries"
android:entryValues="@array/navigationMode_values"
android:key="navigationMode"
android:summary="@string/navigationMode_summary"
android:title="@string/navigationMode_title" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="false"
android:key="inputVolumeMappable"
android:summary="@string/inputVolumeMappable_summary"
android:title="@string/inputVolumeMappable_title" />
<android.support.v7.preference.CheckBoxPreference
android:defaultValue="false"
android:key="inputShareController"
android:summary="@string/inputShareController_summary"
android:title="@string/inputShareController_title" />
<paulscode.android.mupen64plusae.preference.ProfilePreference
android:icon="@drawable/ic_gamepad"
android:key="controllerProfile1"
android:summary="@string/selectedValue"
android:title="@string/controllerProfile1_title"
mupen64:allowDisable="true"
mupen64:managerAction=".profile.ManageControllerProfilesActivity" />
<paulscode.android.mupen64plusae.preference.ProfilePreference
android:icon="@drawable/ic_gamepad"
android:key="controllerProfile2"
android:summary="@string/selectedValue"
android:title="@string/controllerProfile2_title"
mupen64:allowDisable="true"
mupen64:managerAction=".profile.ManageControllerProfilesActivity" />
<paulscode.android.mupen64plusae.preference.ProfilePreference
android:icon="@drawable/ic_gamepad"
android:key="controllerProfile3"
android:summary="@string/selectedValue"
android:title="@string/controllerProfile3_title"
mupen64:allowDisable="true"
mupen64:managerAction=".profile.ManageControllerProfilesActivity" />
<paulscode.android.mupen64plusae.preference.ProfilePreference
android:icon="@drawable/ic_gamepad"
android:key="controllerProfile4"
android:summary="@string/selectedValue"
android:title="@string/controllerProfile4_title"
mupen64:allowDisable="true"
mupen64:managerAction=".profile.ManageControllerProfilesActivity" />
<paulscode.android.mupen64plusae.preference.PlayerMapPreference
android:icon="@drawable/ic_users"
android:key="playerMapV2"
android:summary="@string/playerMap_summary"
android:title="@string/playerMap_title" />
</android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.PreferenceCategory
android:key="categoryData"
android:title="@string/categoryData_title" >
<paulscode.android.mupen64plusae.preference.PathPreference
android:defaultValue="@string/pathGameSaves_default"
android:key="pathGameSaves"
android:title="@string/pathGameSaves_title"
mupen64:selectionMode="0" />
<paulscode.android.mupen64plusae.preference.SeekBarPreference
android:defaultValue="4"
android:key="gameAutoSaves"
android:title="@string/GameAutoSavesMax_title"
mupen64:minimumValue="1"
mupen64:maximumValue="10"
mupen64:stepSize="1"
mupen64:units="" />
<android.support.v7.preference.Preference
android:key="actionReloadAssets"
android:summary="@string/actionReloadAssets_summary"
android:title="@string/actionReloadAssets_title" />
</android.support.v7.preference.PreferenceCategory>
<android.support.v7.preference.Preference
android:icon="@drawable/ic_undo"
android:key="actionResetUserPrefs"
android:summary="@string/actionResetUserPrefs_summary"
android:title="@string/actionResetUserPrefs_title" />
</android.support.v7.preference.PreferenceScreen>

0 comments on commit 64b8cd0

Please sign in to comment.