blob: b1dfbbbfe5f51678214dc2dcf33beb0de0d8d596 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2010-2015, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<resources>
<declare-styleable name="SeekBarPreference">
<attr name="seekbar_offset" format="integer" />
<attr name="seekbar_unit" format="string" />
<attr name="seekbar_low_text" format="string" />
<attr name="seekbar_middle_text" format="string" />
<attr name="seekbar_high_text" format="string" />
</declare-styleable>
<declare-styleable name="MozcMultiSelectListPreference">
<attr name="entryKeys" format="reference" />
<attr name="entries" format="reference" />
</declare-styleable>
<declare-styleable name="Keyboard">
<attr name="keyboardContentDescription" format="string" />
<attr name="flickThreshold" format="dimension" />
<attr name="keyBackground">
<enum name="twelvekeysRegular" value="0" />
<enum name="twelvekeysFunction" value="1" />
<enum name="twelvekeysFunctionWithThreeDots" value="2" />
<enum name="qwertyRegular" value="3" />
<enum name="qwertyFunction" value="4" />
<enum name="qwertyFunctionWithThreeDots" value="5" />
<enum name="qwertyFunctionSpaceWithThreeDots" value="6" />
<enum name="keyboardSeparatorTop" value="7" />
<enum name="keyboardSeparatorCenter" value="8" />
<enum name="keyboardSeparatorBottom" value="9" />
<enum name="transparent" value="10" />
</attr>
<attr name="keyWidth" format="dimension|fraction" />
<attr name="keyHeight" format="dimension|fraction" />
<attr name="keyHorizontalLayoutWeight" format="integer" />
<attr name="horizontalGap" format="dimension|fraction" />
<attr name="verticalGap" format="dimension|fraction" />
<attr name="defaultIconWidth" format="dimension|fraction" />
<attr name="defaultIconHeight" format="dimension|fraction" />
<attr name="defaultHorizontalPadding" format="dimension|fraction" />
<attr name="defaultVerticalPadding" format="dimension|fraction" />
<attr name="popUpHeight" format="dimension|fraction" />
<!-- following offset is diff between a center of a key and a center of the popup window. -->
<attr name="popUpXOffset" format="dimension|fraction" />
<attr name="popUpYOffset" format="dimension|fraction" />
<attr name="popUpIconWidth" format="dimension|fraction" />
<attr name="popUpIconHeight" format="dimension|fraction" />
</declare-styleable>
<declare-styleable name="Row">
<attr name="rowEdgeFlags">
<flag name="top" value="4" />
<flag name="bottom" value="8" />
</attr>
</declare-styleable>
<declare-styleable name="Key">
<attr name="keyEdgeFlags">
<flag name="left" value="1" />
<flag name="right" value="2" />
</attr>
<attr name="stick">
<enum name="even" value="0" />
<enum name="left" value="1" />
<enum name="right" value="2" />
</attr>
<attr name="isRepeatable" format="boolean" />
<attr name="isModifier" format="boolean" />
</declare-styleable>
<declare-styleable name="KeyState">
<attr name="contentDescription" format="string" />
<!-- We now support four meta states here; shift, caps_lock, alt and unmodified.
Please also see KeyState.MetaState for more details.
-->
<attr name="metaState">
<!-- It is allowed to set multiple state here (by concatenating '|' separator).
If we don't specify this attribute it means unmodified state.
-->
<flag name="shift" value="1" />
<flag name="capsLock" value="2" />
<flag name="alt" value="4" />
<flag name="action_done" value="8" />
<flag name="action_go" value="16" />
<flag name="action_next" value="32" />
<flag name="action_none" value="64" />
<flag name="action_previous" value="128" />
<flag name="action_search" value="256" />
<flag name="action_send" value="512" />
<flag name="variation_uri" value="1024" />
<flag name="variation_email_address" value="2048" />
<!-- globe and no_globe are XOR. -->
<flag name="globe" value="4096" />
<flag name="no_globe" value="8192" />
<flag name="composing" value="16384" />
<flag name="handling_touch_event" value="32768" />
<!-- "fallback" works as "catch all" when no other flags are matched.
metaState="fallback" equals to metaState="" so typically
this flag is not specified explicity.
However this is useful when used with logical-OR operator.
e.g., metaState="fallback|composing" -->
<flag name="fallback" value="1073741824" />
</attr>
<attr name="nextMetaState">
<!-- TODO(matsuzakit): Rename to nextAddedMetaStates -->
<flag name="shift" value="1" />
<flag name="capsLock" value="2" />
<flag name="alt" value="4" />
</attr>
<attr name="nextRemovedMetaStates">
<flag name="shift" value="1" />
<flag name="capsLock" value="2" />
<flag name="alt" value="4" />
</attr>
</declare-styleable>
<declare-styleable name="Flick">
<attr name="direction">
<!-- A flick to the center here means just a tap of a key. -->
<enum name="center" value="0" />
<enum name="left" value="1" />
<enum name="right" value="2" />
<enum name="up" value="3" />
<enum name="down" value="4" />
</attr>
</declare-styleable>
<declare-styleable name="KeyEntity">
<attr name="sourceId" format="integer" />
<attr name="keyCode" format="integer|string" />
<attr name="longPressKeyCode" format="integer|string" />
<attr name="longPressTimeoutTrigger" format="boolean" />
<attr name="keyIcon" format="reference" />
<attr name="keyCharacter" format="string" />
<attr name="flickHighlight" format="boolean" />
<attr name="horizontalPadding" format="fraction" />
<attr name="verticalPadding" format="fraction" />
<!-- iconWidth/Height are used to control the size of shown icon.
The region on which an icon is shown is detemined in below way:
1. The region is initially given by keyboard parser (Size: Key width x Row height).
2. The region is shrinked by horizontal/verticalPadding.
3. If (iconWidth > region_width OR iconHeight > region_height),
the icon is drawn in the region (iconWidth/Height is not used).
If not, the icon is shown in the size (iconHeight, iconWidth).
4. Aspect ratio is always kept.
The default values are too large so
if not provided the icon is drawn as large as possible. -->
<attr name="iconHeight" format="fraction|dimension" />
<attr name="iconWidth" format="fraction|dimension" />
</declare-styleable>
<declare-styleable name="PopUp">
<attr name="popUpIcon" format="reference" />
<attr name="popUpLongPressIcon" format="reference" />
</declare-styleable>
<declare-styleable name="Skin">
<attr name="dimension" format="dimension|fraction|reference" />
</declare-styleable>
<declare-styleable name="MozcImageView">
<!-- Drawable represened as raw resource must be specified through "rawSrc" attribute. -->
<attr name="rawSrc" format="reference" />
<attr name="maxImageWidth" format="dimension" />
<attr name="maxImageHeight" format="dimension" />
</declare-styleable>
</resources>