Initial commit
This commit is contained in:
6
dists/android/res/values/attrs.xml
Normal file
6
dists/android/res/values/attrs.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<declare-styleable name="LedView">
|
||||
<attr name="color" format="reference|color" />
|
||||
<attr name="state" format="boolean" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
128
dists/android/res/values/attrs_min.xml
Normal file
128
dists/android/res/values/attrs_min.xml
Normal file
@@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2006 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<!-- Formatting note: terminate all comments with a period, to avoid breaking
|
||||
the documentation output. To suppress comment lines from the documentation
|
||||
output, insert an eat-comment element after the comment lines.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- These are the standard attributes that make up a complete theme. -->
|
||||
<declare-styleable name="CustomKeyboardView">
|
||||
<!-- Default background dim amount when a menu, dialog, or something similar pops up. -->
|
||||
<attr name="backgroundDimAmount" format="float" />
|
||||
|
||||
<!-- Default KeyboardView style. -->
|
||||
<attr name="keyboardViewStyle" format="reference" />
|
||||
|
||||
<!-- Image for the key. This image needs to be a StateListDrawable, with the following
|
||||
possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
|
||||
checkable+checked+pressed. -->
|
||||
<attr name="keyBackground" format="reference" />
|
||||
|
||||
<!-- Size of the text for character keys. -->
|
||||
<attr name="keyTextSize" format="dimension" />
|
||||
|
||||
<!-- Size of the text for custom keys with some text and no icon. -->
|
||||
<attr name="labelTextSize" format="dimension" />
|
||||
|
||||
<!-- Color to use for the label in a key. -->
|
||||
<attr name="keyTextColor" format="color" />
|
||||
|
||||
<!-- Layout resource for key press feedback. -->
|
||||
<attr name="keyPreviewLayout" format="reference" />
|
||||
|
||||
<!-- Vertical offset of the key press feedback from the key. -->
|
||||
<attr name="keyPreviewOffset" format="dimension" />
|
||||
|
||||
<!-- Height of the key press feedback popup. -->
|
||||
<attr name="keyPreviewHeight" format="dimension" />
|
||||
|
||||
<!-- Amount to offset the touch Y coordinate by, for bias correction. -->
|
||||
<attr name="verticalCorrection" format="dimension" />
|
||||
|
||||
<!-- Layout resource for popup keyboards. -->
|
||||
<attr name="popupLayout" format="reference" />
|
||||
|
||||
<attr name="shadowColor" format="color" />
|
||||
|
||||
<attr name="shadowRadius" format="float" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CustomKeyboardViewPreviewState">
|
||||
<!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView}
|
||||
key preview background. -->
|
||||
<attr name="state_long_pressable" format="boolean" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CustomKeyboard">
|
||||
<!-- Default width of a key, in pixels or percentage of display width. -->
|
||||
<attr name="keyWidth" format="dimension|fraction" />
|
||||
<!-- Default height of a key, in pixels or percentage of display width. -->
|
||||
<attr name="keyHeight" format="dimension|fraction" />
|
||||
<!-- Default horizontal gap between keys. -->
|
||||
<attr name="horizontalGap" format="dimension|fraction" />
|
||||
<!-- Default vertical gap between rows of keys. -->
|
||||
<attr name="verticalGap" format="dimension|fraction" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CustomKeyboard_CustomRow">
|
||||
<!-- Row edge flags. -->
|
||||
<attr name="rowEdgeFlags">
|
||||
<!-- Row is anchored to the top of the keyboard. -->
|
||||
<flag name="top" value="4" />
|
||||
<!-- Row is anchored to the bottom of the keyboard. -->
|
||||
<flag name="bottom" value="8" />
|
||||
</attr>
|
||||
<!-- Mode of the keyboard. If the mode doesn't match the
|
||||
requested keyboard mode, the row will be skipped. -->
|
||||
<attr name="keyboardMode" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CustomKeyboard_CustomKey">
|
||||
<!-- The unicode value or comma-separated values that this key outputs. -->
|
||||
<attr name="codes" format="integer|string" />
|
||||
<!-- The XML keyboard layout of any popup keyboard. -->
|
||||
<attr name="popupKeyboard" format="reference" />
|
||||
<!-- The characters to display in the popup keyboard. -->
|
||||
<attr name="popupCharacters" format="string" />
|
||||
<!-- Key edge flags. -->
|
||||
<attr name="keyEdgeFlags">
|
||||
<!-- Key is anchored to the left of the keyboard. -->
|
||||
<flag name="left" value="1" />
|
||||
<!-- Key is anchored to the right of the keyboard. -->
|
||||
<flag name="right" value="2" />
|
||||
</attr>
|
||||
<!-- Whether this is a modifier key such as Alt or Shift. -->
|
||||
<attr name="isModifier" format="boolean" />
|
||||
<!-- Whether this is a toggle key. -->
|
||||
<attr name="isSticky" format="boolean" />
|
||||
<!-- Whether long-pressing on this key will make it repeat. -->
|
||||
<attr name="isRepeatable" format="boolean" />
|
||||
<!-- The icon to show in the popup preview. -->
|
||||
<attr name="iconPreview" format="reference" />
|
||||
<!-- The string of characters to output when this key is pressed. -->
|
||||
<attr name="keyOutputText" format="string" />
|
||||
<!-- The label to display on the key. -->
|
||||
<attr name="keyLabel" format="string" />
|
||||
<!-- The icon to display on the key instead of the label. -->
|
||||
<attr name="keyIcon" format="reference" />
|
||||
<!-- Mode of the keyboard. If the mode doesn't match the
|
||||
requested keyboard mode, the key will be skipped. -->
|
||||
<attr name="keyboardMode" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
16
dists/android/res/values/colors.xml
Normal file
16
dists/android/res/values/colors.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- color for the app bar and other primary UI elements -->
|
||||
<color name="colorPrimary">#FFCC6600</color>
|
||||
|
||||
<!-- a darker variant of the primary color, used for
|
||||
the status bar (on Android 5.0+) and contextual app bars -->
|
||||
<!-- <color name="colorPrimaryDark">#FFCC4400</color> -->
|
||||
|
||||
<!-- a secondary color for controls like checkboxes and text fields -->
|
||||
<!-- <color name="colorAccent">#FFCC5500</color> -->
|
||||
|
||||
<color name="colorBackground">#FFCC6600</color>
|
||||
<!-- <color name="blurb">#FF000000</color> -->
|
||||
</resources>
|
||||
|
||||
31
dists/android/res/values/config.xml
Normal file
31
dists/android/res/values/config.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2009, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*
|
||||
* Copy from AOSP
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate.
|
||||
|
||||
NOTE: The naming convention is "config_camelCaseValue". Some legacy
|
||||
entries do not follow the convention, but all new entries should. -->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Enables swipe versus poly-finger touch disambiguation in the KeyboardView -->
|
||||
<bool name="config_swipeDisambiguation">true</bool>
|
||||
</resources>
|
||||
21
dists/android/res/values/ids_min.xml
Normal file
21
dists/android/res/values/ids_min.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2007, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<item type="id" name="ScummVMKeyboardView" />
|
||||
</resources>
|
||||
5
dists/android/res/values/margins.xml
Normal file
5
dists/android/res/values/margins.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- <dimen name="verticalMargin">0dp</dimen>-->
|
||||
<!-- <dimen name="horizontalMargin">0dp</dimen>-->
|
||||
</resources>
|
||||
12
dists/android/res/values/predictive_back.xml
Normal file
12
dists/android/res/values/predictive_back.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--
|
||||
Android 33 introduced the enableOnBackInvokedCallback with gesture based navigation.
|
||||
Sadly the implementation is incomplete before Android 34 to detect long presses on the back
|
||||
button.
|
||||
So, only enable the attribute starting with Android 34 as Android 33 works well with false.
|
||||
Note: in Android 33 with gesture navigation, the long "press" on back (aka slow back gesture)
|
||||
cannot be detected.
|
||||
-->
|
||||
<bool name="enableOnBackInvokedCallback">false</bool>
|
||||
</resources>
|
||||
71
dists/android/res/values/strings.xml
Normal file
71
dists/android/res/values/strings.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">ScummVM</string>
|
||||
<string name="app_name_debug">ScummVM (debug)</string>
|
||||
<string name="app_desc">Graphic adventure game engine</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="quit">Quit</string>
|
||||
<!-- <string name="scummvm_perm_plugin_label">ScummVM plugin</string> -->
|
||||
<!-- <string name="scummvm_perm_plugin_desc">Allows the application to
|
||||
provide a ScummVM loadable plugin: code that will be executed in the
|
||||
ScummVM application. Malicious plugins may do anything ScummVM
|
||||
itself could do: write to your SD card, delete your savegames,
|
||||
change the ScummVM background to puce, replace menu labels with rude
|
||||
words, etc.</string> -->
|
||||
<!-- <string name="no_sdcard_title">No SD card?</string> -->
|
||||
<!-- <string name="no_sdcard">Unable to read your SD card. This usually means
|
||||
you still have it mounted on your PC. Unmount, reinsert,
|
||||
whatever and then try again.</string> -->
|
||||
<!-- <string name="no_external_files_dir_access_title">External storage error</string> -->
|
||||
<!-- <string name="no_external_files_dir_access">Unable to access external storage
|
||||
to retrieve ScummVM config info! Please grant storage access permissions to
|
||||
the ScummVM app, in order to function properly!</string> -->
|
||||
<string name="no_log_file_title">Log File Error</string>
|
||||
<string name="no_log_file">Unable to read ScummVM log file or create a new one!</string>
|
||||
<string name="no_config_file_title">Config File Error</string>
|
||||
<string name="no_config_file">Unable to read ScummVM config file or create a new one!</string>
|
||||
<string name="no_save_path_title">Save Path Error</string>
|
||||
<string name="no_save_path_configured">Unable to create or access default save path!</string>
|
||||
<string name="no_icons_path_title">Icons Path Error</string>
|
||||
<string name="no_icons_path_configured">Unable to create or access default icons and shaders path!</string>
|
||||
<string name="bad_explicit_save_path_configured">Unable to access the globally set save path! Please revert to default from ScummVM Options</string>
|
||||
<!-- <string name="no_plugins_title">No plugins found</string> -->
|
||||
<!-- <string name="no_plugins_found">ScummVM requires at least one <i>game
|
||||
engine</i> to be useful. Engines are available as separate plugin
|
||||
packages, from wherever you found ScummVM.</string> -->
|
||||
<!-- <string name="to_market">To Market</string> -->
|
||||
<string name="keyboard_toggle_btn_desc">Toggle virtual keyboard</string>
|
||||
<!-- <string name="title_activity_splash">ScummVM Logo Activity</string> -->
|
||||
<!-- <string name="title_activity_main">ScummVM Main Activity</string> -->
|
||||
|
||||
<!-- Copy from AOSP (Android Open Source Project) -->
|
||||
<!-- CustomKeyboardView - accessibility support -->
|
||||
<!-- Description of the Alt button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_alt">Alt</string>
|
||||
<!-- Description of the Cancel button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_cancel">Cancel</string>
|
||||
<!-- Description of the Delete button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_delete">Delete</string>
|
||||
<!-- Description of the Done button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_done">Done</string>
|
||||
<!-- Description of the Mode change button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_mode_change">Mode change</string>
|
||||
<!-- Description of the Shift button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_shift">Shift</string>
|
||||
<!-- Description of the Enter button in a KeyboardView. [CHAR LIMIT=NONE] -->
|
||||
<string name="customkeyboardview_keycode_enter">Enter</string>
|
||||
<!-- End of copy from AOSP -->
|
||||
<string name="customkeyboardview_popup_close">Close popup</string>
|
||||
|
||||
<string name="saf_request_prompt">Please select the *root* of your external (physical) SD card. This is required for ScummVM to access this path: </string>
|
||||
<string name="saf_revoke_done">Storage Access Framework Permissions for ScummVM were revoked!</string>
|
||||
<string name="preference_saf_tree_key" translatable="false">pref_key__saf_tree_uri</string>
|
||||
|
||||
<string name="ini_parsing_error">Configuration file could not be parsed</string>
|
||||
<string name="shortcut_creator_title">Run a game</string>
|
||||
<string name="shortcut_creator_search_game">Search a game</string>
|
||||
<string name="shortcut_creator_no_games">No games (yet)\nOpen ScummVM and add your games here.</string>
|
||||
<string name="shortcut_creator_game_item_icon">Game icon</string>
|
||||
<string name="shortcut_creator_customize_game_name_hint">Shortcut label</string>
|
||||
<string name="shortcut_creator_customize_game_icon_description">Shortcut icon</string>
|
||||
</resources>
|
||||
38
dists/android/res/values/styles.xml
Normal file
38
dists/android/res/values/styles.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2006 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
<!-- Style largely taken from AOSP (frameworks/base/core/res/values) for Widget.KeyboardView -->
|
||||
<style name="View.CustomKeyboard" parent="android:Widget" >
|
||||
<!-- View's background attribute (reference (a drawable) or color) -->
|
||||
<!-- A drawable to use as the background. This can be either a reference
|
||||
to a full drawable resource (such as a PNG image, 9-patch,
|
||||
XML state list description, etc), or a solid color such as "#ff000000"
|
||||
(black). -->
|
||||
<!-- drawables for keyboard taken from AOSP (frameworks/base/core/res) -->
|
||||
<item name="android:background">@drawable/keyboard_background</item>
|
||||
<item name="keyBackground">@drawable/btn_keyboard_key</item>
|
||||
<item name="keyTextSize">22sp</item>
|
||||
<item name="keyTextColor">#FFFFFFFF</item>
|
||||
<item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
|
||||
<item name="keyPreviewOffset">-12dip</item>
|
||||
<item name="keyPreviewHeight">80dip</item>
|
||||
<item name="labelTextSize">14sp</item>
|
||||
<item name="popupLayout">@layout/keyboard_popup_keyboard</item>
|
||||
<item name="verticalCorrection">-10dip</item>
|
||||
<item name="shadowColor">#BB000000</item>
|
||||
<item name="shadowRadius">2.75</item>
|
||||
</style>
|
||||
</resources>
|
||||
37
dists/android/res/values/themes.xml
Normal file
37
dists/android/res/values/themes.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
|
||||
<item name="android:colorBackground">@color/colorBackground</item>
|
||||
<item name="keyboardViewStyle">@style/View.CustomKeyboard</item>
|
||||
</style>
|
||||
|
||||
<style name="SplashThemeBase" parent="AppTheme">
|
||||
</style>
|
||||
|
||||
<style name="SplashTheme_v21" parent="SplashThemeBase">
|
||||
</style>
|
||||
<style name="SplashTheme_v30" parent="SplashTheme_v21">
|
||||
</style>
|
||||
|
||||
<style name="SplashTheme" parent="SplashTheme_v30">
|
||||
<item name="android:windowBackground">@drawable/splash</item>
|
||||
</style>
|
||||
|
||||
<!-- This base theme is overridden in values-v29 to allow for Day/Night theme selection -->
|
||||
<style name="ShortcutCreatorThemeBase" parent="@android:style/Theme.DeviceDefault">
|
||||
</style>
|
||||
|
||||
<style name="ShortcutCreatorTheme_v11" parent="ShortcutCreatorThemeBase">
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="ShortcutCreatorTheme_v21" parent="ShortcutCreatorTheme_v11">
|
||||
</style>
|
||||
<style name="ShortcutCreatorTheme_v30" parent="ShortcutCreatorTheme_v21">
|
||||
</style>
|
||||
|
||||
<style name="ShortcutCreatorTheme" parent="ShortcutCreatorTheme_v30">
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user