hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 6be42fec9e
Android keyboard: emoji key and panel (AndroidX emoji picker), whole-emoji delete (#2275)
What changed, and why (Gboard black box on a Pixel 8 emulator, API 36, one language, as Hex has no
globe key):
- An emoji key beside the comma, where Gboard puts it when its emoji switch key shows (its default
  with one language): ?123 1.5, comma 1, emoji 1, space 4 (was 5), period 1, enter 1.5 cells.
  Rollover covers it like the other keys.
- The emoji panel replaces the strip and the keys and, like Gboard's, stands 124 dp taller than the
  keyboard (Gboard: 325 px on the Pixel 8), as long as the keyboard stays within 60% of the screen
  (less in landscape). It is AndroidX's emoji picker 1.7.0 (androidx.emoji2:emoji2-emojipicker,
  Apache 2.0) in Hex's colours through a theme overlay (ink for the chosen category, quiet icons and
  titles, the sheet colour behind skin tones), in light and dark: its categories along the top,
  Recently used, and skin tones on a held emoji, remembered per emoji. Under it, ABC goes back to
  the letters, a space bar, and delete with the keys' own repeat and word slide. A new picker each
  time the panel opens, because the picker refreshes its recents only once their row scrolls away.
  Picking an emoji gives Gboard's KEYBOARD_TAP. Search is not in the picker; it can follow.
- Delete takes a whole character as people see it (a grapheme cluster: 👍🏽, a flag, a family),
  as Gboard does; it took one code point, leaving a broken sequence behind.
- credits.txt names the picker and Guava (its dependency).

Size: the release APK (R8, shrunk) grows from 67,858,522 to 68,809,372 bytes, +0.95 MB, measured on
the Studio with the debug key standing in for the upload key, outside the repo.

Verified (emulator only, Pixel 8, API 36 and API 31): the bottom row next to Gboard's; the panel
opens at Gboard's height; picking 😀 and 😃 types both, delete takes one whole, ABC returns and the
next key types a letter; Recently used shows the picks newest first when the panel opens again;
a held 🙋 offers 18 skin-tone variants, picking one types 🙋🏼‍♀️ and the grid keeps it, and one
delete removes all seven code units; dark mode and landscape screenshots; dumpsys vibrator_manager
shows KEYBOARD_TAP for an emoji, as for Gboard's. New cases in InsertionTest; assembleDebug,
testDebugUnitTest and lintDebug pass.
2026-11-21 17:56:03 -05:00
..
src Android keyboard: emoji key and panel (AndroidX emoji picker), whole-emoji delete (#2275) 2026-11-21 17:56:03 -05:00
build.gradle.kts Android keyboard: emoji key and panel (AndroidX emoji picker), whole-emoji delete (#2275) 2026-11-21 17:56:03 -05:00
proguard-rules.pro Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00