mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Keyboard was ported over from our SDL port which used https://github.com/pelya/commandergenius/tree/sdl_android/project Pending optimizations, floatable/draggable implementation and a few bug fixes We are using a local copy and slightly modified version of KeyboardView and Keyboard (and related resources). since the android KeyboardView widget will be deprecated in API 29. The copies are taken from the AOSP, as per the recommendation from Android Developers.
39 lines
1.8 KiB
XML
39 lines
1.8 KiB
XML
<?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>
|