summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/internal/KeyStyles.java
Commit message (Collapse)AuthorAgeFilesLines
* Separate inner classes of keyboard package out under internal packageTadashi G. Takaoka2012-08-301-230/+0
| | | | Change-Id: Ia3969bd5ddec5aa5d81d05ad4cf676d818587922
* Add static construct method for SparseArrayTadashi G. Takaoka2012-08-221-1/+1
| | | | Change-Id: I6da97f6ea23578318f403bb5d64c30b1663c69ee
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-1/+2
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* Use SparseArray<E> instead of HashMap<Integer,E>Tadashi G. Takaoka2012-06-291-11/+16
| | | | Change-Id: Id962e670ee1a5164e6c69deb84625139bf5e7974
* Can override key-styleTadashi G. Takaoka2012-05-011-42/+46
| | | | | Bug: 6412932 Change-Id: I9576ae5b42bcc54cfd8ede0bae5148f3b04c1978
* Fix confusable "label" usage, use "text" insteadTadashi G. Takaoka2012-04-201-14/+14
| | | | | | | | * Rename makelabel tool to maketext * Rename KeyboardLablesSet class to KeyboardTextsSet * Rename "!label/name" to "!text/name" Change-Id: Ia9494a89fe56f20ca8e8fedb253adbcf8b771bd3
* Use string attribute for icon nameTadashi G. Takaoka2012-04-201-3/+3
| | | | Change-Id: I336acf33c7e6bc993b9da9b17ec689975fa8127d
* Generate KeyboardLabelsSet from donottranslate-more-keys.xmlTadashi G. Takaoka2012-04-111-27/+53
| | | | | | | | This change introduces makelabel tool that reads all languages' donottranslate-more-keys and generate KeyboardLabelsSet.java source file. The makelabel command must be invoked prior to compile LatinIME. Change-Id: I7515c7919c535e30f9c80a37bdc831d0f682cd43
* Introduce KeyboardCodesSet.java and remove keycodes.xmlTadashi G. Takaoka2012-04-101-2/+2
| | | | Change-Id: Icfd6d06f47425aa037682d22c895548ba6f047d8
* Add next/prev navigate action more keys and remove tab keyTadashi G. Takaoka2012-02-211-4/+4
| | | | | | Bug: 6037537 Bug: 5961814 Change-Id: I9c6dedf953452a180fcd5bce7bfadfd3c821f224
* Fix KeyStyles to be able to override the value in styleTadashi G. Takaoka2012-02-071-49/+58
| | | | Change-Id: Ib7476cdc0f81dfeb6292ef663e9dbab6d2b949ba
* Move CSV parser to KeySpecParserTadashi G. Takaoka2012-02-021-2/+1
| | | | Change-Id: I424fb47bc70e9b6aaa5a16ae9b2500d23da75c26
* Use MoreKeySpecParser to parse puctuations strip resourcesTadashi G. Takaoka2012-02-011-59/+2
| | | | | | | | | | | This change also * Doesn't use Key.getRtlParenthesisCode to get correct parentheses code in RTL context. Intead uses the outputText feature of moreKeys specification. * Move CVS string parser from KeyStyles to Utils. Bug: 5948247 Change-Id: I45752c7d01b4f7d3f3da900b110a2185b336a1f0
* Support addtionalMoreKeysTadashi G. Takaoka2012-01-301-0/+1
| | | | | | | This change also removes * Unused more_keys_for_q, w, and p. Change-Id: Idb99e5f6d8c2ad2d28437f42b35b21c282cd181f
* Use String instaed of CharSequence in Key classTadashi G. Takaoka2012-01-251-22/+21
| | | | Change-Id: Ia76a41daede402ed2a509e110ae97d6bb660c760
* Support @string reference in moreKeys attributeTadashi G. Takaoka2012-01-201-13/+24
| | | | Change-Id: If0056d0601149d2ddd0e231a81e7b2409b37fc06
* Change more key specification type to String from CharSequenceTadashi G. Takaoka2012-01-201-49/+53
| | | | Change-Id: I5e910f8225a248fc6403771836dec4c0b7294caa
* Get rid of public reference to KeyboardIconsSet.ICON_* constantsTadashi G. Takaoka2011-12-191-0/+1
| | | | | | | | | | | | | | As a consequence, * Add Key.iconDisabledKey has been introduced and Key.getIcon honors the enabled state of the key. * The attribute id of disabled icon for shortcut key, Keyboard_iconShortcutKeyDisabled, is renamed to Keyboard_iconDisbledShortcutKey * KeyboardIconsSet has getIconByIconId and getIconByAttrId methods instead of getIcon. Bug: 5778201 Change-Id: Ica93b073b9a04acd18ead7a33b60e3c6d813e7a1
* Move KeyboardBuilder and KeyboardParams classes into Keyboard classTadashi G. Takaoka2011-12-181-1/+3
| | | | | | | This change also moves XmlParseUtils to com.android.inputmethod.latin package. Bug: 5778201 Change-Id: I7d9faa344460753ce178ad4048e0fadb65c75614
* Add extra key icons to KeyboardIconsSetTadashi G. Takaoka2011-12-181-1/+0
| | | | | | | | | | | * Get rid of Key.keyIconShifted attribute. Add Keyboard.iconShiftKeyShifted to KeyboardIconsSet. * Get rid of LatinKeyboardView.disabledShortcutIcon attribute. Add Keyboard.iconShortcurKeyDisabled to KeyboardIconsSet. * Add Keyboard.iconSpaceKeyForNumber to KeyboardIconsSet. * Fix misplaced autoCorrectionSpacebarLedIcon resources. Change-Id: I381bff3789254977ab3cb18f58f95b3c433b1e1a
* Add XmlParseUtils classTadashi G. Takaoka2011-12-141-9/+11
| | | | Change-Id: Ie288272bc75832db7d743262c4c4fbe73b6dca04
* Add Key.altCode attributeTadashi G. Takaoka2011-11-301-0/+1
| | | | | | | | | | * Registering alternate code and while key is typing. * Showing press/release graphics of the key that has the above altenate code. * Showing press/release graphics of all shift keys. * Renaming Key.ignoreWhileTyping to Key.altCodeWhileTyping. Bug: 5639503 Change-Id: I67fb45bae76284a1f0deb6fd12ae5fb781d06cc3
* Add Key.keyActionFlags and obsolete Key.isRepeatableTadashi G. Takaoka2011-11-211-20/+2
| | | | | | This change also renames Key.keyLabelOption to keyLabelFlags. Change-Id: Iedd0bfaa420ad382c07ce084416355690e390919
* Make some private method staticTadashi G. Takaoka2011-10-281-1/+1
| | | | Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765
* Use XmlPullParser interface instead of XmlResourceParserTadashi G. Takaoka2011-10-061-2/+3
| | | | Change-Id: I00e8a82aaaf5fec1e27707bce0a82cbfd1bc9fae
* Remove Key.isStick, use backgroundType="stick" insteadTadashi G. Takaoka2011-09-151-1/+0
| | | | Change-Id: I50e88c0870a3fe360b81f19163ca2f64ec38d8e8
* Refactor Key.isFunctional to more generic Key.keyTypeTadashi G. Takaoka2011-09-151-1/+1
| | | | | Bug: 5232726 Change-Id: Idc861ca725f62eaf37795f57401573394a17d6d3
* Rename PopupCharactersParser to MoreKeySpecParserTadashi G. Takaoka2011-08-311-2/+2
| | | | | | Also renames PopupPanel to MoreKeysPanel Change-Id: I37209a5a8fe7dbba1eef03e3be88ba5253653926
* Rename PopupMiniKeyboardView to MiniKeyboardViewTadashi G. Takaoka2011-08-311-1/+1
| | | | Change-Id: Ic83cd1200cfb8f8c0b0cfbcad449031b8e8a29e0
* Cleanup Keyboard related code and rename some classesTadashi G. Takaoka2011-08-021-2/+2
| | | | | | | This is a follow up change of I90ffbde0 Bug: 5023981 Change-Id: I3a6b862d05f5f907dee954cd6d6fee983b20ab5e
* Fix exception messageTadashi G. Takaoka2011-07-311-3/+3
| | | | | Bug: 4340933 Change-Id: I81e7b0c72116b5bb56b0fdcd02386288aebd73e7
* Draw phone/number keyboard layout witout iconTadashi G. Takaoka2011-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This change introduces: * New KeyboardView attribute * keyLargeLetterRatio to specify large letter text size. * keyHintLabelRatio to specify hint label text size. * keyHintLabelColor to specify hint label text color. * keyPreviewTextRatio to specify key preview text size. * New Key.keyLabelOption flags * alignLeftOfCenter, align the key label slightly left of the key center. * largeLetter, use keyLargeLetterRatio to draw key letter. * hasHintLabel, draw keyHintLabel at the right of key letter. * followKeyHintLabelRatio, draw the key label following keyHintLabelRatio size. * Renames * Key.keyHintLetter to keyHintLabel. * Key.keylLabelOption fontFixedWidth to fontMonoSpace. * Key.keylLabelOption popupHint to hasPopupHint. * Removes * number icon releted attributes and declarations. Change-Id: I2f456737e3a46209e5f48b5155951b2b21a33859
* Move icon declaration to Keyboard themeTadashi G. Takaoka2011-06-221-27/+9
| | | | | Bug: 4436327 Change-Id: I074014d28dcb323b60dbc8fd9e169c75c393e0b3
* Move keyboard related internal class to separate packageTadashi G. Takaoka2011-06-221-0/+259
Change-Id: Ic1459066b865cde5104b3734193f76c997959c68