diff options
author | 2012-08-30 16:05:40 +0900 | |
---|---|---|
committer | 2012-08-30 16:14:32 +0900 | |
commit | 749cc1875164e38ca24d31d0d718603232abccb8 (patch) | |
tree | 0869b09561fac301970f1fa165bcb78a3db8f71b /java/res | |
parent | 35ff94547c16c84c5b6fafdae0b4a683be782b97 (diff) | |
download | latinime-749cc1875164e38ca24d31d0d718603232abccb8.tar.gz latinime-749cc1875164e38ca24d31d0d718603232abccb8.tar.xz latinime-749cc1875164e38ca24d31d0d718603232abccb8.zip |
Move some key top visual attributes from KeyboardView to Key
Change-Id: I1e2d59bf8c438ca653e2e415ccf66fd4f15d5394
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/values/attrs.xml | 106 | ||||
-rw-r--r-- | java/res/values/styles.xml | 12 |
2 files changed, 59 insertions, 59 deletions
diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 27bf32935..a44f84b9c 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -41,45 +41,6 @@ checkable+checked+pressed. --> <attr name="keyBackground" format="reference" /> - <!-- Size of the text for one letter keys. If specified as fraction, the text size is - measured in the proportion of key height. --> - <attr name="keyLetterSize" format="dimension|fraction" /> - <!-- Size of the text for keys with multiple letters. If specified as fraction, the text - size is measured in the proportion of key height. --> - <attr name="keyLabelSize" format="dimension|fraction" /> - <!-- Large size of the text for one letter keys, in the proportion of key height. --> - <attr name="keyLargeLetterRatio" format="fraction" /> - <!-- Large size of the text for keys with multiple letters, in the proportion of key height. --> - <attr name="keyLargeLabelRatio" format="fraction" /> - <!-- Size of the text for hint letter (= one character hint label), in the proportion of - key height. --> - <attr name="keyHintLetterRatio" format="fraction" /> - <!-- Size of the text for hint label, in the proportion of key height. --> - <attr name="keyHintLabelRatio" format="fraction" /> - <!-- Size of the text for shifted letter hint, in the proportion of key height. --> - <attr name="keyShiftedLetterHintRatio" format="dimension|fraction" /> - - <!-- Horizontal padding of left/right aligned key label to the edge of the key. --> - <attr name="keyLabelHorizontalPadding" format="dimension" /> - <!-- Right padding of hint letter to the edge of the key.--> - <attr name="keyHintLetterPadding" format="dimension" /> - <!-- Bottom padding of popup hint letter "..." to the edge of the key.--> - <attr name="keyPopupHintLetterPadding" format="dimension" /> - <!-- Right padding of shifted letter hint to the edge of the key.--> - <attr name="keyShiftedLetterHintPadding" format="dimension" /> - - <!-- Color to use for the label in a key. --> - <attr name="keyTextColor" format="color" /> - <!-- Color to use for the label in a key when in inactivated state. --> - <attr name="keyTextInactivatedColor" format="color" /> - <!-- Key hint letter (= one character hint label) color --> - <attr name="keyHintLetterColor" format="color" /> - <!-- Key hint label color --> - <attr name="keyHintLabelColor" format="color" /> - <!-- Shifted letter hint colors --> - <attr name="keyShiftedLetterHintInactivatedColor" format="color" /> - <attr name="keyShiftedLetterHintActivatedColor" format="color" /> - <!-- Layout resource for key press feedback.--> <attr name="keyPreviewLayout" format="reference" /> <!-- The background for key press feedback. --> @@ -88,14 +49,10 @@ <attr name="keyPreviewLeftBackground" format="reference" /> <!-- The background for the right edge key press feedback. --> <attr name="keyPreviewRightBackground" format="reference" /> - <!-- The text color for key press feedback. --> - <attr name="keyPreviewTextColor" format="color" /> <!-- 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" /> - <!-- Size of the text for key press feedback popup, in the proportion of key height. --> - <attr name="keyPreviewTextRatio" format="fraction" /> <!-- Delay after key releasing and key press feedback dismissing in millisecond --> <attr name="keyPreviewLingerTimeout" format="integer" /> @@ -105,18 +62,8 @@ <!-- Layout resource for more keys panel --> <attr name="moreKeysLayout" format="reference" /> - <attr name="shadowColor" format="color" /> - <attr name="shadowRadius" format="float" /> <attr name="backgroundDimAlpha" format="integer" /> - <attr name="keyTypeface" format="enum"> - <!-- This should be aligned with Typeface.NORMAL etc. --> - <enum name="normal" value="0" /> - <enum name="bold" value="1" /> - <enum name="italic" value="2" /> - <enum name="boldItalic" value="3" /> - </attr> - <!-- Attributes for PreviewPlacerView --> <attr name="gestureFloatingPreviewTextSize" format="dimension" /> <attr name="gestureFloatingPreviewTextColor" format="color" /> @@ -335,6 +282,59 @@ <!-- The X-coordinate of upper right corner of this key including horizontal gap. If the value is negative, the origin is the right edge of the keyboard. --> <attr name="keyXPos" format="dimension|fraction" /> + + <!-- Key top visual attributes --> + <attr name="keyTypeface" format="enum"> + <!-- This should be aligned with Typeface.NORMAL etc. --> + <enum name="normal" value="0" /> + <enum name="bold" value="1" /> + <enum name="italic" value="2" /> + <enum name="boldItalic" value="3" /> + </attr> + <!-- Size of the text for one letter keys. If specified as fraction, the text size is + measured in the proportion of key height. --> + <attr name="keyLetterSize" format="dimension|fraction" /> + <!-- Size of the text for keys with multiple letters. If specified as fraction, the text + size is measured in the proportion of key height. --> + <attr name="keyLabelSize" format="dimension|fraction" /> + <!-- Large size of the text for one letter keys, in the proportion of key height. --> + <attr name="keyLargeLetterRatio" format="fraction" /> + <!-- Large size of the text for keys with multiple letters, in the proportion of key height. --> + <attr name="keyLargeLabelRatio" format="fraction" /> + <!-- Size of the text for hint letter (= one character hint label), in the proportion of + key height. --> + <attr name="keyHintLetterRatio" format="fraction" /> + <!-- Size of the text for hint label, in the proportion of key height. --> + <attr name="keyHintLabelRatio" format="fraction" /> + <!-- Size of the text for shifted letter hint, in the proportion of key height. --> + <attr name="keyShiftedLetterHintRatio" format="dimension|fraction" /> + <!-- Horizontal padding of left/right aligned key label to the edge of the key. --> + <attr name="keyLabelHorizontalPadding" format="dimension" /> + <!-- Right padding of hint letter to the edge of the key.--> + <attr name="keyHintLetterPadding" format="dimension" /> + <!-- Bottom padding of popup hint letter "..." to the edge of the key.--> + <attr name="keyPopupHintLetterPadding" format="dimension" /> + <!-- Right padding of shifted letter hint to the edge of the key.--> + <attr name="keyShiftedLetterHintPadding" format="dimension" /> + <!-- Color to use for the label in a key. --> + <attr name="keyTextColor" format="color" /> + <attr name="keyTextShadowColor" format="color" /> + <attr name="keyTextShadowRadius" format="float" /> + <!-- Color to use for the label in a key when in inactivated state. --> + <attr name="keyTextInactivatedColor" format="color" /> + <!-- Key hint letter (= one character hint label) color --> + <attr name="keyHintLetterColor" format="color" /> + <!-- Key hint label color --> + <attr name="keyHintLabelColor" format="color" /> + <!-- Shifted letter hint colors --> + <attr name="keyShiftedLetterHintInactivatedColor" format="color" /> + <attr name="keyShiftedLetterHintActivatedColor" format="color" /> + + <!-- Key preview visual parameters --> + <!-- The text color for key press feedback. --> + <attr name="keyPreviewTextColor" format="color" /> + <!-- Size of the text for key press feedback popup, in the proportion of key height. --> + <attr name="keyPreviewTextRatio" format="fraction" /> </declare-styleable> <declare-styleable name="Keyboard_Include"> diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index a52ee06d4..634b32a78 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -64,8 +64,8 @@ <item name="keyPreviewLingerTimeout">@integer/config_key_preview_linger_timeout</item> <item name="moreKeysLayout">@layout/more_keys_keyboard</item> <item name="verticalCorrection">@dimen/keyboard_vertical_correction</item> - <item name="shadowColor">#BB000000</item> - <item name="shadowRadius">2.75</item> + <item name="keyTextShadowColor">#BB000000</item> + <item name="keyTextShadowRadius">2.75</item> <item name="backgroundDimAlpha">128</item> <!-- android:color/holo_blue_light=#FF33B5E5 --> <item name="gestureFloatingPreviewTextSize">@dimen/gesture_floating_preview_text_size</item> @@ -203,7 +203,7 @@ <item name="keyHintLabelColor">#E0000000</item> <item name="keyShiftedLetterHintInactivatedColor">#66000000</item> <item name="keyShiftedLetterHintActivatedColor">#CC000000</item> - <item name="shadowColor">#FFFFFFFF</item> + <item name="keyTextShadowColor">#FFFFFFFF</item> </style> <style name="MainKeyboardView.Stone" @@ -229,7 +229,7 @@ > <item name="keyBackground">@drawable/btn_keyboard_key_stone</item> <item name="keyTextColor">#FF000000</item> - <item name="shadowColor">#FFFFFFFF</item> + <item name="keyTextShadowColor">#FFFFFFFF</item> </style> <!-- Theme "Stone bold" --> <style @@ -328,8 +328,8 @@ <item name="keyPreviewRightBackground">@drawable/keyboard_key_feedback_right_ics</item> <item name="keyPreviewTextColor">#FFFFFFFF</item> <item name="keyPreviewOffset">@dimen/key_preview_offset_ics</item> - <item name="shadowColor">#00000000</item> - <item name="shadowRadius">0.0</item> + <item name="keyTextShadowColor">#00000000</item> + <item name="keyTextShadowRadius">0.0</item> </style> <style name="MainKeyboardView.IceCreamSandwich" |