summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java
Commit message (Collapse)AuthorAgeFilesLines
* Create com.android.inputmethod.keyboard.emoji packageTadashi G. Takaoka2014-05-141-543/+0
| | | | Change-Id: Idd12c2fa4f5add7bb50bd7349ff9a74fffe82cfd
* Fix NPE that happens only in some unit testsTadashi G. Takaoka2014-05-141-1/+3
| | | | | Bug: 14922410 Change-Id: Ica801e102d302e9faa7c24721b37634f1e812af3
* Make Emoji palette more Quantum light compliantTadashi G. Takaoka2014-05-141-11/+18
| | | | | Bug: 14419121 Change-Id: I8a737e2b73a000ad66e7e30a695677fe0bcc66fb
* Separate functional key background from normal oneTadashi G. Takaoka2014-05-141-8/+12
| | | | | | | | | | This CL also moves spacebarBackground attribute from MainKeyboardView to KeyboardView. This CL must be checked in together with I48c383ca97. Bug: 14419121 Change-Id: Id356d0086a8fb21375fb5c66076873258fb3d63e
* Make EmojiCategory and EmojiPalettesAdapter as top level classesTadashi G. Takaoka2014-05-141-455/+11
| | | | Change-Id: Iea8087a240cb46e410b8de1f6a784b2995e7a6fb
* Sort keys from top-left to bottom-right orderTadashi G. Takaoka2014-04-211-2/+3
| | | | Change-Id: I228748824de62e9e46fa43db200d23f41eb6d2ce
* Use unmodifiable list to return keys from KeyboardTadashi G. Takaoka2014-04-211-8/+9
| | | | Change-Id: I85a0b18d2d78632e9a9f074eda1de9225001f876
* Add contentDescription to Emoji paletteTadashi G. Takaoka2014-04-171-1/+17
| | | | | | | | | | This CL adds content descriptions of: - Emoji Category icon/label. - Delete key - Space key Bug: 11452158 Change-Id: Ic00592c560b6265c880cd25f2e18cfd349b4620b
* Fix updating the shift state upon backspaceJean Chalard2014-04-141-4/+6
| | | | | Bug: 13514349 Change-Id: If4c9db12b0ab5be676f7a2f72715f469066ee537
* Remove unneeded CustomViewPager classTadashi G. Takaoka2014-04-071-0/+8
| | | | | | | | | Originally this hacky class has been introduced by I0824f82c30 to address bug: 11721001. Because the bug: 11721001 has been addressed by I950f13ec40 and etc., this class should be removed. Bug: 13665882 Change-Id: Iabdd369e4dddb0188534289eea1269fb196895eb
* Call setLayerType(LAYER_TYPE_HARDWARE) for EmojiPalettesView too.Ken Wakasa2014-03-271-1/+3
| | | | | | | | This CL probably does not addresses the bug, but still this should be the right thing to do here. bug: 12667742 Change-Id: I587652942fd66094779fb7942c734e0ff5f9d0b6
* Remove hack from EmojiPalettesView.startEmojiPalettesTadashi G. Takaoka2014-02-241-12/+16
| | | | | Bug: 12115967 Change-Id: I91c567a9577012ec28c08430c55e56e9c2e25b5f
* Use the same label of switch-to-alphabet key on Emoji paletteTadashi G. Takaoka2014-02-171-15/+32
| | | | | Bug: 12115967 Change-Id: I61cf80db933aa2ab220ddcaa88a4c9af7beeb35c
* Fix a null object reference crash on Emoji PaletteYohei Yukawa2014-02-141-1/+3
| | | | | | | Do nothing if the current EmojiPageKeyboardView is null. BUG: 13006906 Change-Id: I169b70122ec939075b5be033953b48762fd528fc
* Fix indent.Yohei Yukawa2014-02-131-1/+1
| | | | | | | This is a follow up for the previous commit to fix indent. BUG: 12964092 Change-Id: I0530b1c0dae26ac736ddcc6d426ec6ce57bce4d1
* Cancel keydown events immediately once the view starts scrollingYohei Yukawa2014-02-121-0/+9
| | | | | | | | | | | | | | | The motivation of this patch is to make sure a user never feel haptic feedback when scrolling the Emoji palette. In order to achieve it, EmojiPageKeyboardView#releaseCurrentKey() should be called whenever (delayed) keydown events should be canceled. This patch wires up ViewPager.OnPageChangeListener#onPageScrolled with EmojiPageKeyboardView#releaseCurrentKey() so that delayed keydown events will be canceled immediately once the ViewParger starts scrolling. BUG: 12964092 Change-Id: Iea8c3e090bb16a8622e6b4a850af2bf963aa77d0
* Fix inconsistent behavior with the back-to-the-main-keyboard keyYohei Yukawa2014-01-281-12/+8
| | | | | | | | | | | | With this patch, the back-to-the-main-keyboard in the Emoji palette will be registered as a key-release action instead of a key-press action, like switch-to-the-emoji-palette in the main layout. This provides mroe consistent UX when the layout is switched from the main layout to the Emoji palette then switched back to the main layout. BUG: 12464067 Change-Id: Ia0d0185db43234dfcfb7cee2677f3d199fe6ed96
* Fix inconsistent behavior with the spacebar on the Emoji pallete.Yohei Yukawa2014-01-281-24/+58
| | | | | | | | | | | | On the Emoji palette, unlike other layouts, a user could not cancel events by moving the finger away from the spacebar. With this patch, the actual handler of the spacebar will be registered as onClick event, which will not occur when the user cancel the event. Bug: 12464067 Change-Id: I7e7e11ae5f17073e5d92116adca0702579d3ae9c
* Fix inconsistent behavior with backspace in the Emoji pallete.Yohei Yukawa2014-01-271-55/+93
| | | | | | | | | | | | | | | | | | | | | In some ways, the delete key on the Emoji palette was inconsistent with that in other keyboard layouts. - It deletes a character in down events, not up events. - A user cannot cancel the event by moving the finger away from the key. This patch fixes these inconsistencies by revisin EmojiPalettesView.DeleteKeyOnTouchListener. Notable changes are: - An explicit state machine is introduced because there are different event sequences to be considered. - Background thread is replaced with CountDownTimer so tha key-repeat events can be naturally generated in the UI thread. - MotionEvent.ACTION_MOVE is now handled to cancel the subsequent delete key events when the finger is moved away from the key area. Bug: 12464067 Change-Id: Ibc360a1394afef368a8d9af7b4c0e99e8ce1d83c
* A style fixYohei Yukawa2014-01-091-1/+1
| | | | | | | Just a style fix to follow up the previous commit. BUG: 11439600 Change-Id: Ib7a4654627a6fc22d86f2097f86f001bd76426e9
* Trigger haptic feedback at touch down on the EmojiPalettesViewYohei Yukawa2014-01-091-19/+39
| | | | | | | | | | EmojiPalettesView triggers the haptic feedback at the timing of touch-up rather than touch-down. This patch set changes the timing to touch-up so that the UX on the EmojiPalettesView can be consistent with normal keyboard layouts. This patch set also fixes the missing haptic feedback from facemarks such as ":-)". Bug: 11439600 Change-Id: I22245946712bd1c36226786d6ff81e3b563f7ef7
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-113/+110
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Save / restore the last used emoji categorySatoshi Kataoka2013-10-111-4/+7
| | | | | Bug: 11029983 Change-Id: I1bec2c3c6b547de68562a818a8d6c9fef83787b7
* Fix the position of emoji paletteSatoshi Kataoka2013-10-081-1/+5
| | | | Change-Id: I07a3912cb9fef8e28f3605de4e73a201a900e95c
* Reduce memory of emoji paletteSatoshi Kataoka2013-10-081-0/+21
| | | | | Bug: 10902556 Change-Id: I3c8da35a601de2bfb248292c7b59235fc1120988
* Fix memory leak in EmojiPaletteViewSatoshi Kataoka2013-10-081-3/+6
| | | | | Bug: 10902556 Change-Id: I3a8c1e08d6f953b462d914acd1f411c36f9d80f2
* Prep for RAM footprint optimization for Emoji palettesKen Wakasa2013-10-081-9/+11
| | | | | bug: 10902556 Change-Id: I313948c73b60cd33c437cf02e8d3fb61c288a240
* Enter -> Alpha keyboard switcher in Emoji palette viewSatoshi Kataoka2013-10-071-4/+4
| | | | | Bug: 11103091 Change-Id: I0c5384e9f148566d1ac1d178a8227eb913d59908
* Fix buildSatoshi Kataoka2013-10-071-1/+1
| | | | Change-Id: I61341aa7b1ceb311aaa5faa5888ba31e463a95d5
* Rename EmojiKeyboardView -> EmojiPalettesViewSatoshi Kataoka2013-10-071-0/+794
Change-Id: I226bb8e21fd2b2b6639896a1cc433d19f3f431c2