aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-650/+0
|
* Fix the ellipses image scaling of LatinIMEMohammadinamul Sheik2015-08-121-1/+3
| | | | | | Bug: 23082844 Change-Id: I7baac5e5a0700280906fd0f5f9351fc8dfc4c2b3 (cherry picked from commit 990e9a75b6d88ba234131612f11eac6b69c1cf84)
* Label empty suggestions.Dan Zivkovic2015-02-271-6/+12
| | | | | | | | When talkback is enabled, empty strings will have a content description. Bug 19479836. Change-Id: I25679a2bdeff238a5330ba406d5bc7e6e2868ba1
* LatinIME portion of "green plus" feature.Dan Zivkovic2015-02-031-53/+0
| | | | | | | | | Removes the feature that adds strings to the user dictionary, aka the "green highlight with a plus sign". Bug 19237189. Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
* Move isRtlLanguage method to LocaleUtilsTadashi G. Takaoka2014-11-121-3/+2
| | | | Change-Id: I485a076b81927fed0da593216fea2c740449ef4c
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-2/+1
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* Merge "Remove shouldBlockAutoCorrectionBySafetyNet"Keisuke Kuroyanagi2014-10-141-12/+0
|\
| * Remove shouldBlockAutoCorrectionBySafetyNetKeisuke Kuroyanagi2014-10-141-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 13756409 [Category diff] +1 27 -1 0 +2 0 -2 0 +3 0 -3 1 +4 11 -4 0 +5 51 -5 0 +6 0 -6 38 +7 0 -7 50 [Weighted category diff] +1 28 -1 0 +2 0 -2 0 +3 0 -3 1 +4 11 -4 0 +5 51 -5 0 +6 0 -6 39 +7 0 -7 50 show diff for ./en_user_log_phones_2011_08.csv +1 4 +4 5 +5 7 -6 9 -7 7 The increase of false positives comes from the spaceless typing test cases that are synthetic data. Change-Id: I4ea77aa56ebfaa5518c71107169e1d2332de6327
* | Always show the typed word in recorrections.Jean Chalard2014-10-091-12/+12
|/ | | | | | | Bug: 11330140 Bug: 17875601 Bug: 17623275 Change-Id: Ie4620f36f312c54c7b01b5f6cbdb0bc9171b6179
* Fix missing prediction words on contextual stripTadashi G. Takaoka2014-10-071-10/+8
| | | | | Bug: 17874801 Change-Id: Iaba935a6b2548376f10a0ecd80f07ea7ada6c60a
* Fix ellipsizing and text scale x calculationTadashi G. Takaoka2014-10-021-57/+62
| | | | | | Bug: 17742721 Bug: 11158757 Change-Id: I98b55a8e661804e84f75e75675c6f2ef33ac1a11
* Fix when to show more suggestions dot hintTadashi G. Takaoka2014-10-011-3/+7
| | | | | Bug: 17742406 Change-Id: Ifdf5d196778da2bb9bb9e3ca9250d23857d90bab
* Support Accept typed word UITadashi G. Takaoka2014-08-221-63/+145
| | | | Change-Id: I58e95b2791a45afdc7dae8e26dcfc200b3b4b854
* Let the backing view cover the entire content areaYohei Yukawa2014-08-161-4/+2
| | | | | | | | With this CL, the backing view starts covering the content area entirely. This allows the IME to render its UI elements at an arbitrary position on the screen. Change-Id: I8b4173410931b776964dddf66de2fe247e51d9de
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-2/+2
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* [CS1] Some initial clean upJean Chalard2014-06-231-2/+3
| | | | | Bug: 13238601 Change-Id: I54ee9a85ecfee3c50c8db3eb4cd6f391a775a630
* Disable empty suggestion word on the suggestions stripTadashi G. Takaoka2014-06-191-0/+7
| | | | | | | | | | | | | | It should be disabled when it is empty. But should be enabled even when it is empty with accessibility exploration on to avoid announcing "disabled". Note that this CL may not be able to handle "suspending talk back" state correctly. It should be handled by registering TouchExplorationStateChangeListener that is available from API 19. Bug: 15738513 Bug: 14849593 Change-Id: Id9ad89f770840f74a106f53833060407b20c1e24
* Set content descrition of words in suggestions stripTadashi G. Takaoka2014-06-091-7/+7
| | | | | Bug: 14849593 Change-Id: If020e2352c8e950ce87dc4711c39b8a6a41f66fc
* Add content description to the voice keyTadashi G. Takaoka2014-05-131-1/+4
| | | | | Bug: 14849593 Change-Id: I1664b6a4ef54b78a09df65adbffff7861b54c4a9
* Use margin instead of padding in SuggestionStripViewTadashi G. Takaoka2014-05-071-8/+7
| | | | | | | | This CL also tunes the width of suggestions strip to be able to display 15~16 letters without x-scaling at the center slot. Bug: 14419121 Change-Id: Ia5766cee043899533e24e2ebc621e8dc279370b3
* Remove unused argument in SuggestionStripLayoutHelperTadashi G. Takaoka2014-03-201-3/+2
| | | | | Bug: 13461039 Change-Id: I3f6227bd56fb81021aaacf0e901eab8a9e91d4a1
* Fix clipped important notice message on tabletTadashi G. Takaoka2014-03-141-1/+2
| | | | | Bug: 13461039 Change-Id: I710bf10c9cbc202c7f6ee39ab4c8b9d699741a81
* [QRP5] Fix boldness for predictions, and small refactoringJean Chalard2014-02-251-3/+4
| | | | | | | | | This is more correct. When predictions, the typed word should always be null unless explicitly passed. The text color should be that of a valid typed word only if it's actually the typed word. Bug: 13170509 Change-Id: I769ae100e112c37c6f02064fe9ef2f81372ca9e5
* [QRP4] Simplification & small correctness fix.Jean Chalard2014-02-251-6/+6
| | | | | | | | | This fixes the color of the predictions when running on a theme that has different colors for typed and suggested words (GB theme). Also, this is easier to understand and to modify from now on. Change-Id: Ifdc6d86a1695e83e16103041b06a2451f8d52cc4
* [QRP3] RefactoringJean Chalard2014-02-251-13/+15
| | | | | | | Rename some variables for clarity and use constants instead of immediates. Change-Id: Ie07fbfcc3738ac4e67aefddc339fc54259172c39
* [QRP1] Fix a bug where the wrong value would get passedJean Chalard2014-02-251-3/+3
| | | | | | | | | | In the practice it works because this never tries to access inside the suggestion strip, and the worst that can happen is a wrong text color for a suggestion. But since the two colors that would be swapped are the same, nobody ever notices -- unless they are using the GingerBread theme. Change-Id: Ic8c70d8b3cdddf92946dfefbbc6d061572626c7a
* Turn personalization on when important notice dialog is displayedTadashi G. Takaoka2014-02-191-2/+3
| | | | | | | This change must be checked in together with Ifde70b1d3b. Bug: 10587358 Change-Id: I9dc48f9d521e0e6f6269e4f184389ba805f3053f
* Add go to "Settings" button to important notice dialogTadashi G. Takaoka2014-02-171-7/+1
| | | | | | | | | | | This CL also - removes icons on important notice title. - changes the "Personalized suggestions" summary text. This change must be checked in together with Id115d89ba9. Bug: 10587358 Change-Id: I52ff26fa8ae12445e9014ba08253f69e1be609f4
* Add PunctuationSuggestions classTadashi G. Takaoka2014-02-141-9/+10
| | | | | | | This change must be checked in together with I366c477516. Bug: 12640318 Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
* Fix showing all suggestions when the top suggestion is longTadashi G. Takaoka2014-02-131-34/+46
| | | | | | | | | This change also fixes Bug#12982404; displays the suggestion word using entire suggestions strip if there is only one suggestion. Bug: 12564279 Bug: 12982404 Change-Id: I51806b90c3ee34a2072880245d4e33f7be273c8f
* Show important notice stripTadashi G. Takaoka2014-02-101-10/+4
| | | | | Bug: 10587358 Change-Id: I1af3faa59afb2fc4cb90176acff1c2b0b1ba369c
* Fix important notice strip text layoutTadashi G. Takaoka2014-02-031-4/+10
| | | | | Bug: 10587358 Change-Id: I9cbdd3b450e05d6d0611a16b6b7fad945918dd5f
* Add important notice stripTadashi G. Takaoka2014-01-311-2/+19
| | | | | | | This change is a groundwork to show important notice. Bug: 10587358 Change-Id: I80aa70d30e2a529b37798f0df2183b41df3ac38a
* Show "Touch again to save" in system localeTadashi G. Takaoka2014-01-301-4/+9
| | | | | Bug: 12811156 Change-Id: I928daf17297ec5c526720850d6203cb9af0496ac
* Suggestion strip honors RTL layoutTadashi G. Takaoka2014-01-281-3/+8
| | | | | Bug: 9126496 Change-Id: Ia4a1c52bd2a80ea7fe6b9529f2767fee5f9e8aeb
* Refactor SuggestionsStripLayoutHelper classTadashi G. Takaoka2014-01-271-45/+11
| | | | | Bug: 9126496 Change-Id: I8bede13c8745fbcad68099d882681ca4f2326d14
* [IL37] Small simplificationJean Chalard2013-12-261-3/+3
| | | | | Bug: 8636060 Change-Id: I08a6c04986a0bd86ce4c232893e804766ebeebb9
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-4/+7
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Fix the suggestion size.Jean Chalard2013-10-111-9/+26
| | | | | | | | | | | | | | The available space was not computed correctly. This makes the decision to ellipsize/expand the middle suggestion correct. Also, the scale was not applied correctly in some cases. Finally, for some reason ellipsize does not work as we expect. I'm not sure how to get it to work like we want it to, but this works around the problem in a simple manner. Bug: 11158757 Change-Id: I083e7ac56e157f100923733e67b92a6368a526c9
* Merge "Revert "Remove key preview backing view""Ken Wakasa2013-08-301-1/+12
|\
| * Revert "Remove key preview backing view"Ken Wakasa2013-08-301-1/+12
| | | | | | | | | | | | | | This reverts commit 2dfcfc5013eee2fbd19a5830ff70943bd6c1bee2. Change-Id: I96c691b2e9c92be456420196cd7361d03ea4f3e9 bug: 10541453
* | Fix buildTadashi G. Takaoka2013-08-271-1/+1
| | | | | | | | Change-Id: I60a6ee4dff8203cd9a2ed8045df6a2d75e50c89d
* | Remove unnecessary alpha attributes of SuggestionStripViewTadashi G. Takaoka2013-08-211-17/+5
|/ | | | Change-Id: I78701403d7bd21928c4b459bb336a565f386ebcc
* Remove key preview backing viewTadashi G. Takaoka2013-08-091-12/+1
| | | | | | This change re-origanizes view hierarchy of IME's input view. Change-Id: I9d0a07692d0f41de3345d207366393bcd5424f7e
* Move a couple classes to the utils packageKen Wakasa2013-07-191-2/+2
| | | | Change-Id: Ia14a2011d79bad7cd02697b9254705f6e2099442
* Move TypefaceUtils and ViewUtils to utils packageTadashi G. Takaoka2013-07-051-1/+1
| | | | Change-Id: Iccd47c27670248c43de9a539c1951111d7733111
* Reorganize Utils classTadashi G. Takaoka2013-07-051-2/+1
| | | | Change-Id: I7294d1547def5dcfcae9d1d53b277cb3cc9f2d18
* Fix the one-suggestion case.Jean Chalard2013-06-251-22/+36
| | | | | | | | | | | | When there is only one suggestion, this code does not work. The reason for that is, it's not homogeneous at all and takes indices of one thing into another. Not completely related to b/8839763, but realized working on this and needed to have it addressed. Bug: 8839763 Change-Id: I422730cc7eebb69ff421a171025af0390ebcdf92
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-2/+2
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Fix punctuations stripTadashi G. Takaoka2013-06-211-4/+10
| | | | | Bug: 9508186 Change-Id: I8f0fbf4e0578cf9116d4c57e7e5747d38c89387e