summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/Key.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix drawing of custom action label keyTadashi G. Takaoka2014-09-161-0/+4
| | | | | Bug: 17488054 Change-Id: I433561ed19ec2a79402867a0395a3e388730f087
* Keep aspect ratio of Material action key backgroundTadashi G. Takaoka2014-09-091-0/+5
| | | | | Bug: 15681452 Change-Id: Ie4b823dca541b76b68cade580845a21ff0b21e2f
* Implement Floating Action Button more keys keyboardTadashi G. Takaoka2014-09-081-0/+4
| | | | | Bug: 15681452 Change-Id: I8484e4fe4d989b391f2b5230836dc9dfac218429
* Add new value "spacebar" to Key.backgroundType attributeTadashi G. Takaoka2014-09-031-1/+5
| | | | | Bug: 17318036 Change-Id: Ie84438a6aa3adc14a9db603d0cd4d5e37a55d612
* Removes "customAction" value from Key.backgroundType attributeTadashi G. Takaoka2014-09-031-4/+0
| | | | | Bug: 17318036 Change-Id: I6a36d50ba2e69eafbb0faa049014281bd4d4ddfc
* Fix the order of keys on more keys keyboardTadashi G. Takaoka2014-08-291-14/+36
| | | | | | | | | | This CL fixes the behavior of !autoColumnOrder!<n> flag in a more keys specification. Formerly the <n> value specifies the maximum number of column of more keys. With this CL, the <n> value specifies the exact number of column of more keys. Bug: 16603887 Change-Id: I2120620fa512ee30043bb146ad675a942a375129
* Fix Tamil keyboardTadashi G. Takaoka2014-08-111-1/+2
| | | | | | | | | This CL adds Tamil (Sri Lanka) and Tamil (Singapore) subtypes. This CL also fixes Sinhala Keyboard's currency symbol. Bug: 9978106 Bug: 6911143 Change-Id: I2060978097882d0f4b1ec10f1103260ed8a447d0
* Revert "Revert "Align hint label to bottom""Tadashi G. Takaoka2014-08-071-0/+5
| | | | This reverts commit 02c4a80afea802859c5cb4d1033a7374c3132c96.
* Revert "Revert "Remove unused Key and Keyboard attributes""Tadashi G. Takaoka2014-08-071-3/+0
| | | | | | This reverts commit 44e20f4fb42380061b1c4aa8905c2b301d7130cd. Change-Id: I6560c8f4ef15bf8318d9eedf68a9eb5031f0581d
* Revert "Revert "Add Key label off center attribute""Tadashi G. Takaoka2014-08-071-3/+3
| | | | | | This reverts commit 787e9a37b41c67e8683e854538b2743a2bc8fdcd. Change-Id: I177b8f5d08eb487c19180c09101cc073222c4efe
* Revert "Add Key label off center attribute"Ken Wakasa2014-08-071-3/+3
| | | | | | | | | This reverts commit ba49920e8046ca592d6c914b2e3f7394bf9c281c. Due to unit test breakage. Bug: 14419121 Change-Id: I6f4fc30b86227e59c883d202551b162dc91b4166
* Merge "Revert "Remove unused Key and Keyboard attributes"" into lmp-devKen Wakasa2014-08-051-0/+3
|\
| * Revert "Remove unused Key and Keyboard attributes"Ken Wakasa2014-08-071-0/+3
| | | | | | | | | | | | | | | | This reverts commit cdcaa37a372799eecf796f7002bf49bf3a5f42c1. Due to unit test breakage. Change-Id: I1c22edf983f6e03a34b86d7c1fae3d3188447a75
* | Revert "Align hint label to bottom"Ken Wakasa2014-08-071-5/+0
| | | | | | | | | | | | | | | | | | This reverts commit f1784266ec80244dcefdbd70a43147f1cd847547. Due to unit test breakage. Bug: 14419121 Change-Id: Ibc201649e71135292530b26337d9305a6681f446
* | Align hint label to bottomTadashi G. Takaoka2014-08-071-0/+5
| | | | | | | | | | Bug: 14419121 Change-Id: I9147d3c4a3687ed745ffdddfff221d88652919b2
* | Merge "Remove unused Key and Keyboard attributes" into lmp-devTadashi G. Takaoka2014-08-041-3/+0
|\|
| * Remove unused Key and Keyboard attributesTadashi G. Takaoka2014-08-071-3/+0
| | | | | | | | | | | | | | | | This CL removes the following unused Key attributes - Key.keyLabelFlags' followKeyLargeLabelRatio - Keyboard.keyLargeLabelRatio Change-Id: Ib4fb13cc7ca902ac1733ecf27bd284d07e10bc3e
* | Add Key label off center attributeTadashi G. Takaoka2014-08-071-3/+3
|/ | | | | | | | | | This CL adds two Key attributes to control how much a label should be off centered. - keyLabelOffCenterRatio - keyHintLabelOffCenterRatio Bug: 14419121 Change-Id: I26650eefdd375f0eeca8a1ca6034a8339d2a3182
* Align space key icon to bottom of a keyTadashi G. Takaoka2014-08-071-0/+5
| | | | | | | | | The Key.keyLabelFlags's flag "alignButtom" (misspelled) has been removed by Iae3cd66744. This CL re-introduce the same flag with "alignIconToBottom". Bug: 16803172 Change-Id: I412590f394c6ca9b36358d6acfe8675071403bdd
* Add dedicated background for custom action label keyTadashi G. Takaoka2014-08-061-64/+36
| | | | | Bug: 15526978 Change-Id: Ia73d825c7e00097018822704e61272d0e448f39a
* Remove unused Key.keyLabelFlags' valuesTadashi G. Takaoka2014-07-191-25/+0
| | | | Change-Id: Iae3cd6674448f258ee0a4bf2966bf3c347876b4f
* Remove unused keyPreviewIcon attributesTadashi G. Takaoka2014-07-081-20/+9
| | | | | | This CL also removes unused tabKeyPreview icon. Change-Id: Ia69ba9c3d7c67ccb8983275bed262292eb422db2
* Fix Sinhala keyboard for tablet deviceTadashi G. Takaoka2014-07-071-5/+10
| | | | | | | | | | This CL introduces fontDefault flag to keyLabelFlags of Key attribute to reset font specification to keyTypeface attribute. This is a followup of I065824f3fa. Bug: 6911143 Change-Id: I33bd4a23aaea73e2b17175ddd39053ec915d5451
* Fix NPE by disabling key preview popup of Emoji paletteTadashi G. Takaoka2014-06-131-1/+2
| | | | | Bug: 15579928 Change-Id: I6bcf885f2c1aa37b337a85978409ccf41e459c2a
* More concise Key.toString()Tadashi G. Takaoka2014-06-031-8/+17
| | | | Change-Id: I0ef983f54e828193e9c7e4a10c888f72702d499c
* Support 9-patch drawable for spacebar iconTadashi G. Takaoka2014-05-151-0/+5
| | | | | Bug: 14419121 Change-Id: I901ea2a5bfae870b3aae8fea3bc38d999b2354b8
* Use slightly dimmed text color for functional keysTadashi G. Takaoka2014-05-151-0/+4
| | | | | | | | | This CL introduces two new key attributes to achieve this. - KeyboardView.functionalTextColor - followFunctionalTextColor flag for Key.keyLabelFlags Bug: 14419121 Change-Id: I45ca433dcc9cc8c6cf891e21d5316ee4048b0cad
* Separate functional key background from normal oneTadashi G. Takaoka2014-05-141-22/+29
| | | | | | | | | | This CL also moves spacebarBackground attribute from MainKeyboardView to KeyboardView. This CL must be checked in together with I48c383ca97. Bug: 14419121 Change-Id: Id356d0086a8fb21375fb5c66076873258fb3d63e
* Add Key.getIconId for testabilityTadashi G. Takaoka2014-02-251-2/+6
| | | | | Bug: 13017434 Change-Id: I94ff45da3f58b74cc9dd4d38179670fbcf619d92
* Revert "Prepare for changing text color for functional keys"Tadashi G. Takaoka2014-02-241-18/+1
| | | | | | | This reverts commit 194e004e81f74c4124184ad8597d68e3837ea560. Bug: 10786040 Change-Id: I4c5287d46cabe287abce5cba77635cf26d2cd192
* Remove RTL aware !code and add corresponding !textTadashi G. Takaoka2014-02-131-5/+4
| | | | Change-Id: I9021c8fa1cf2d4ac07579237a939c15551509a0b
* Refactor Key constructorsTadashi G. Takaoka2014-02-101-46/+24
| | | | | | This is a followup of I76432556ca. Change-Id: Ie2c8f7c23352a33db28e89ee8e6ebaba9eb760a3
* Allow an empty keySpec for SpacerTadashi G. Takaoka2014-02-091-2/+4
| | | | | Bug: 12933248 Change-Id: I76432556caf319ce23c1fb7fa3d6b94118e64cf8
* Rename Key.keyLabel attribute to KeySpecTadashi G. Takaoka2014-02-071-1/+1
| | | | Change-Id: Ida48cd9bdbc01fefad651a005084262c0f46c41c
* Consolidate keyIcon and code with keyLabel attributeTadashi G. Takaoka2014-02-071-11/+8
| | | | Change-Id: I75fbd348fab5022606ca14552eb03b15af6684c8
* Consolidate keyOutputText with keyLabel attributeTadashi G. Takaoka2014-02-061-5/+1
| | | | Change-Id: I90ea2c9d5ce42fabc79599995a2fae1f5f652a6b
* Parse keyLabel for icon, code, and outputText as wellTadashi G. Takaoka2014-02-061-11/+22
| | | | Change-Id: I023915b68b4aabd056c2c1eb745876471556e15e
* Move some methods to MoreKeySpec classTadashi G. Takaoka2014-01-311-6/+6
| | | | Change-Id: I025ed15e36ac3113db6a5fccefa0c87f016703fa
* Move some methods to StringUtilsTadashi G. Takaoka2014-01-311-5/+5
| | | | Change-Id: I29d87fdd65ec879d1c0bdf7e7792a677687c1693
* Fix key top letter color in shifted layoutTadashi G. Takaoka2013-12-131-5/+6
| | | | | | | There is a chance to have an empty hint label even though keyLabelFlags has hasShiftedLetterHint flag. Change-Id: I63b9fcc42a40391d5902814cae4c75abb61e4b94
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-10/+14
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Prepare for changing text color for functional keysSatoshi Kataoka2013-10-031-1/+18
| | | | | | Bug: 10786040 Change-Id: I0de7d4923ea13b44adcf1f4ea456796cd02ef27b
* Add recents keyboardTadashi G. Takaoka2013-08-281-3/+4
| | | | | Bug: 6370846 Change-Id: I5dc235395fe9b3bd95711fee2fe9b678b4660760
* Merge "Rename KeyStyle.getFlag to getFlags"Tadashi G. Takaoka2013-08-191-2/+2
|\
| * Rename KeyStyle.getFlag to getFlagsTadashi G. Takaoka2013-08-191-2/+2
| | | | | | | | Change-Id: Iff3d850466cb6016a53bf86104cd5d22363f96a8
* | Make all KeyboardRow attributes privateTadashi G. Takaoka2013-08-191-1/+1
|/ | | | Change-Id: Ifaca6ad5e642964d8c3a77a96a1cd74f363ee996
* Add getters and copy constructor to Key classTadashi G. Takaoka2013-08-151-27/+98
| | | | Change-Id: I78eb96dcc26378926dc63acbfeb4828cbd44435d
* Add empty key background typeTadashi G. Takaoka2013-08-141-9/+17
| | | | Change-Id: I9b07c58a9b70ae0228f87e1f066ca8cd959b4f03
* Make key label from supplementary code pointTadashi G. Takaoka2013-08-071-2/+7
| | | | Change-Id: I0a7834b5c4908a2116a8772cf85985ab8bed7091
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-1/+1
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa