aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of fd64e47c to masterKen Wakasa2010-10-121-6/+16
|\ | | | | | | Change-Id: I07434c251fafa5eee548a54dae30d91df3a24085
| * Tweak key width for 'o'-popup chars.Ken Wakasa2010-10-111-6/+16
| | | | | | | | | | | | | | We'll merge this to master for now, but we should have new attr (such as popupCharWidth) to handle this reasonably in the newly created BaseKeyboard class. bug: 3082178 Change-Id: I024b946aafbbeb07b865a09f489dacb56f0478d0
* | am 02b8d91b: am 7e1f5a2d: Make sure to set symbol keyboard shiftedTadashi G. Takaoka2010-10-101-4/+2
|\| | | | | | | | | | | | | Merge commit '02b8d91b2dbe4290d4b09d93a22efbc5552326db' * commit '02b8d91b2dbe4290d4b09d93a22efbc5552326db': Make sure to set symbol keyboard shifted
| * Make sure to set symbol keyboard shiftedTadashi G. Takaoka2010-10-091-4/+2
| | | | | | | | | | | | | | | | | | | | | | To avoid a corner case of bug#3070963, in toggleShift() method of KeyboardSwitcher, the shifted symbol keyboard will be set if current keyboard is symbol keyboard or is not shifted symbol keyboard. This change also implements mini keyboard cache with WeakHashMap. Bug: 3070963 Change-Id: I868fc072e2f21bddded1622b800a53b9a6a43e91
* | resolved conflicts for merge of 23d50bfb to masterKenny Root2010-10-101-3/+4
|\| | | | | | | Change-Id: Ia3fd85bd0c231f7b910b14caad38fa453a2336f6
| * Reduce delay before mini popup keyboard is shownTadashi G. Takaoka2010-10-081-3/+4
| | | | | | | | | | | | | | | | | | Before this change, the delay was 500 ms that came from ViewConfiguration.getLongPressTimeout(). This change reduces the delay to 400 ms. Bug: 3074984 Change-Id: Ia5af5e877a3c4bb29211ef4040c728ac09a9fe85
* | Add keyHintIcon attribute to BaseKeyboard.Key classTadashi G. Takaoka2010-10-051-30/+32
| | | | | | | | | | | | | | This keyHintIcon attribute is used to specify hint icon drawable at top right corner of Key. Change-Id: Icaa91e63c4473b2513396bd3fbeb8ed6fd73586c
* | Unbundle Keyboard.java to BaseKeyboard.javasatok2010-10-021-11/+12
|/ | | | Change-Id: I8b310c2c0cae1a151e53c22001c586697346982c
* Mini keyboard works even while shift is being pressedTadashi G. Takaoka2010-09-291-3/+11
| | | | | Bug: 3038861 Change-Id: I94011ca80710ff6eb24e940104f7d9d3bb86840a
* Add enter/exit animation style to prevew and mini keyboardTadashi G. Takaoka2010-09-241-13/+14
| | | | | | | | | | TODO This animation style API of PopupWindow can be called only in Gingrebread or later. We should refactor this using reflection to be able to be compatible with Froyo. Bug: 3004787 Bug: 2973989 Change-Id: I2abfcc853b1a0af2bccee7bdf5fbd723456b7d34
* Fixed popup mini-keyboard positionTadashi G. Takaoka2010-09-231-1/+1
| | | | | | | This change reverts I28bf3e4deb46a428dc8422a3a165183e00608604 partly Bug: 3029284 Change-Id: I0701ab9dfa1cfddbecbef3d32e525c0a143fc297
* Tune left and right padding of popup mini keyboardTadashi G. Takaoka2010-09-231-1/+1
| | | | | | | This change also fix popup window display position calculation. Bug: 3029284 Change-Id: I28bf3e4deb46a428dc8422a3a165183e00608604
* Use SystemClock.uptimeMillis() for event timeTadashi G. Takaoka2010-09-231-1/+2
| | | | Change-Id: If20f289992f829ae3a0a2a1eb60a4fc9b35c308a
* Choose smaller or shorter language name for space barTadashi G. Takaoka2010-09-221-1/+1
| | | | | | | | | | | | | | To fit a language name to the space bar or the language switcher, this change chooses smaller text size or shorter language name appropriately. This change also tunes the vertical position of a language name in the space bar by parameter SPACEBAR_LANGUAGE_BASELINE. Bug: 3004640 Bug: 3001021 Change-Id: Idb3adcb6fac1a23836510912d35312fa11b4f259
* Fix issue space key preview remains on screen and would not dismissTadashi G. Takaoka2010-09-221-2/+11
| | | | | | | | | | | | | | The space key preview should be displayed one of the following case. - Popup preview is enabled - Language switcher is in action, whether popup preview is enabled or not. For phone number keyboard, popup preview is never displayed even if popup preview is enabled. Bug: 3006612 Bug: 3021091 Change-Id: I5385c776d0e8e3981fc8d8851db9140d92599ce5
* Add lightweight visual indication for numbers.Ken Wakasa2010-09-221-12/+51
| | | | | | | | | This change adds lightweight visual hints of alternate numeric characters on the top row - e.g. having a light gray '1' on the upper right corner of letter 'q' Note that MDPI resources are tentative (the same as HDPI for now, until we get fixed MDPI visual assets). bug: 3004632 Change-Id: I7a25cf90b702433a844c88f5c47bf914706af9bc
* Fix mini keyboard display position when preview is disabledTadashi G. Takaoka2010-09-211-1/+1
| | | | | Bug: 3021082 Change-Id: I2cfb462c89b222449ee2ba5559462a9f5d2306ed
* Shorten popup preview residual time (100ms)Tadashi G. Takaoka2010-09-211-1/+1
| | | | | | | | The residual time was formerly 150ms by Ia63662a549481d18046a46ef8292c0a4438b5588, and originally was 70ms. Bug: 3004787 Change-Id: If60a74c51e9a68f008711cca2423094e8204755f
* Align key preview and mini-keyboard positionsTadashi G. Takaoka2010-09-181-4/+22
| | | | | Bug: 3004793 Change-Id: I1839e6ff3c8c66a576bfb3db9391c146ed225451
* Longer popup preview residual time (150ms)Tadashi G. Takaoka2010-09-181-1/+1
| | | | | Bug: 3004787 Change-Id: Ia63662a549481d18046a46ef8292c0a4438b5588
* Add a new preference item to show/hide the settings key.Ken Wakasa2010-09-161-1/+1
| | | | | | bug: 2998722 Change-Id: Iac1641c338388fd8f85e0cf47e31afdaeb34c0c0
* All keys should be processed before processing modifier keyTadashi G. Takaoka2010-09-151-6/+30
| | | | | Bug: 2987077 Change-Id: I971c44be121d8780ec27aa1649fd0925e249fbbc
* Add keyHysteresisDistance xml attributeTadashi G. Takaoka2010-09-141-14/+11
| | | | | | | | | This change also introduces MiniKeyboardKeyDetector and mini_keyboad_slide_allowance parameter to tune the key detection behavior. Bug: 2993769 Change-Id: I1932b0a382e172cb77b9e098ae182049c834dfe0
* Fix a bug in y-axis offset for sliding finger key detection for mini popup ↵Ken Wakasa2010-09-121-3/+12
| | | | | | | | | keyboard. Also, tentatively added key detection allowance for below of the keys in mini popup keyboard. bug: 2979407 Change-Id: I84794969facd929c84df23e0120d46dff71c6efb
* Mini popup keyboard adjustment: Have the leftmost number right above the key.Ken Wakasa2010-09-121-13/+35
| | | | | | | | | | Also fixed an issue when the mini popup keyboard hits the right edge of the view. A few code cleanups as well. bug: 2980864 Change-Id: I95f8392521e57560907d54b662e3483ebaf6f7ce
* Code cleanupKen Wakasa2010-09-101-25/+16
| | | | Change-Id: I333693ab8e4088180cc25768d874ad7320d9da8b
* Dismiss mini keyboard when finger is released outside mini keyboardTadashi G. Takaoka2010-09-071-0/+9
| | | | | | Bug: 2978975 Change-Id: Ie634e8ae827fe093c5c673b75d85835050b03794
* Fixed extra periods when chording with shift and spaceTadashi G. Takaoka2010-09-071-21/+18
| | | | | | | | Actually it was caused by canceling repeat key (space and delete) when multiple pointer are touching. Bug: 2975041 Change-Id: If82183b9225efdace7b5418860b9664f1705b7ec
* Disable pop-up preview on mini keyboardTadashi G. Takaoka2010-09-061-1/+2
| | | | | | | | | | | This change also disable the special behavior of long press a key that has only one digit alternate. If the visual design of both the pop-up preview and the mini keyboard will look like same, I think that showing mini keyboard is enough for the key that has one digit alternate. Bug: 2973546 Change-Id: I04f138c120aa58526fe054626dac856171fb7a58
* Support multi-touch only when device has distinct multi-touch panelTadashi G. Takaoka2010-09-061-1/+50
| | | | | Bug: 2973373 Change-Id: I9871c09ec8c1c2aa945d97392e61ee1ec585baef
* One alternate is treated as key action, not open mini keyboardTadashi G. Takaoka2010-09-031-1/+1
| | | | | | | | This change also fixes bug#2973683. Bug: 2973546 Bug: 2973683 Change-Id: I67573e5b7cad4af261591a4a608d0596dd7901f2
* Move inflating mini keyboard code into separate methodTadashi G. Takaoka2010-09-031-82/+93
| | | | Change-Id: Iba8e43ba6125e559d4c7d9cadb6bcb13b8eefc83
* Fix NPE in LatinKeyboardBaseViewTadashi G. Takaoka2010-09-031-37/+30
| | | | | | | | This change also refactors some mini-keyboard related methods in LatinKeyboardBaseView and PointerTracker class. Bug: 2973236 Change-Id: I3190fe89ea3ac3c6d351ed4b6d77de98a0aa65db
* Propagate preview enable attribute to mini-keyboardTadashi G. Takaoka2010-09-031-0/+1
| | | | | Bug: 2959169 Change-Id: Iea1bec44baf3344d9f91280bd2b8f28476cbcf51
* Remove close button from mini keyboardTadashi G. Takaoka2010-09-031-12/+1
| | | | | Bug: 2959169 Change-Id: I9c78f9417aaa448b8b23596bc3e748fe99085393
* Support sliding pop-up mini-keyboard inputTadashi G. Takaoka2010-09-031-29/+55
| | | | | | | | | | | TODO: - Remove close button on mini-keyboard - Dismiss mini-keyboard when finger leave the screen while no key is selected This change also renames some instance variables to have more meaningful name. Bug: 2959169 Change-Id: I9fd79116a647d7be82415c6e9e7cdaf6edcb2bf6
* Encapsulate vertical and horizontal correction values into KeyDetector.Tadashi G. Takaoka2010-09-021-27/+17
| | | | | Bug: 2959169 Change-Id: Id2b0b974fffdf6f09ee1828e957b973d2ce1c315
* Add PointerTracker argument to long press related methodsTadashi G. Takaoka2010-09-021-9/+10
| | | | | | | This change also adds debugging log to PointerTracker class Bug: 2959169 Change-Id: Ie6cf67681180467bd8ba35d0205ce6727b7684a2
* Queuing PointerTracker to support n-key roll-over and shift modifier.Tadashi G. Takaoka2010-09-021-3/+64
| | | | | Bug: 2910379 Change-Id: I5cfae33e72a406585137842a2260310813cee07f
* Add new public attribute mPointerId to PointerTrackerTadashi G. Takaoka2010-09-021-2/+1
| | | | | | | | It is easier to track each pointer if a PointerTracker object keeps its pointer id. Bug: 2910379 Change-Id: If3e3b0cf3d834d22302598f4d85d54c9a4ce92ba
* Make abstract KeyDetector classTadashi G. Takaoka2010-09-021-14/+9
| | | | | | | | | | The KeyDetector abstracts key detection algorithm. The ProximityKeyDetector is one of its concrete implementations. Another one that might be called XAxisKeyDetector will follow to realize the pop-up mini-keyboard behavior described in bug#2959169. Bug: 2959169 Change-Id: Idd3fc53282e6b721ec7a4ce500af8aba21ce07a3
* Track all pointers eventsTadashi G. Takaoka2010-09-011-36/+26
| | | | | Bug: 2910379 Change-Id: I179ae4359afb57c351d5fcc5f5453c30d3ef0c01
* Introduce multiple PointerTrackerTadashi G. Takaoka2010-09-011-26/+54
| | | | | Bug: 2910379 Change-Id: Iefafa2d30ad16f898a00664e4bf3e3e88dcd2cb2
* Make KeyDebounce class a top-level class and rename it to PointerTrackerTadashi G. Takaoka2010-09-011-421/+40
| | | | | Bug: 2910379 Change-Id: I9503b2211b272a4a2903d0732985e5ab8ee39440
* Fix ArrayIndexOutOfBoundsException.Ken Wakasa2010-09-011-3/+5
| | | | | bug: 2964045 Change-Id: I97d95181e1a6838ace9c135aa92e7f20034e821f
* Refactor KeyDebounce classTadashi G. Takaoka2010-09-011-258/+304
| | | | | | | | | | | | | This change moves the following methods into KeyDebounce class. - MotionEvent handling methods (onDownEvent etc.). - Keyboard action event generator method (detectAndSendKey). - Multi-tap key support methods (resetMultiTap etc.). - Key preview text generator method (getPreviewText). The change that makes KeyDebounce a top-level class will follow. Bug: 2910379 Change-Id: I1526c0461e247d97f0c4b3bd580330f137c787be
* Refactor key preview methodsTadashi G. Takaoka2010-08-311-48/+75
| | | | | | | | | Extract key press and release handling out of previewKey() to KeyDebouncer class. And pass Key object as argument of previewKey() instead of key index. Bug: 2910379 Change-Id: Ifec39cfc4845bd92da2f62eba2b26ac6a5cbb341
* Remove mAbortKey flag completelyTadashi G. Takaoka2010-08-311-22/+3
| | | | | | | | | | | | | | | | | | | | | | These three conditions assign true to the mAbortKey flag. 1. setKeyboard() sets the new keyboard layout. 2. long press shows the pop-up mini keyboard. 3. ACTION_CANCEL event is occurred. In the case 1, in LatinIME so far, only "symbol key" and "language switch" cause keyboard layout change. In both cases, the event is occurred in onUpEvent(), so we do not need to worry about aborting event. In the case 2, long press is used only to pop-up mini-keyboard and at that time mMiniKeyboardOnScreen could be used as a flag. In the case 3, though I'm not sure when this case occurs, in onCancelEvent() all the things that should be canceled are canceled in onCancelEvent(). Bug: 2910379 Change-Id: I12377c5f3e808f1c017ce980e12b1513895047bc
* Don't re-allocate KeyDebouncer when keyboard is switched.Tadashi G. Takaoka2010-08-281-94/+94
| | | | | | | | This change also re-orders instance variables and eliminates unnecessary ones. Bug: 2910379 Change-Id: I6b2217f75738fada32a33f59f0f7adba5e99dd6e
* Revert "Show key preview instantaneously"Tadashi G. Takaoka2010-08-271-4/+28
| | | | | | This reverts commit 09f530e248a3caf0037ca89aa79a836385a03fab. Change-Id: I3106cd22cc1eac750f05bce26df6af3026dfaf86