hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax f3e9443aef
Android keyboard: size the suggestion strip to its words, shrink long ones (#2584)
The strip split its row into three equal slots and ellipsized each word at
16sp. A candidate wider than its third was cut even when the row had room
("benc…" and "bench…" for "benchm" / "benchmark"), and a larger system font
size made even short words need more than a third.

Each slot now takes a share of the row that follows its word's width (with a
56 dp minimum weight, not a guaranteed tap width when the row is crowded),
so empty slots collapse and a short word leaves its room to a long one. A
word still wider than its share shrinks from 16sp towards 12sp before the
strip ellipsizes it, measured and set through the same sp→px conversion so
Android 14's non-linear font scale can't shrink a word that fits. Slot
widths move with their words, so the middle word isn't always exactly
centred. Dividers show only between two filled slots.

Verified: testDebugUnitTest passes, including StripTextTest's four fitTextSize
cases, and compileDebugKotlin builds the keyboard. Not run: assembleDebug (no
NDK here) or a device/emulator.
2026-11-23 16:09:53 -05:00
..
src Android keyboard: size the suggestion strip to its words, shrink long ones (#2584) 2026-11-23 16:09:53 -05:00
build.gradle.kts Android: Send feedback form that posts to Bellhop (#2582) 2026-11-23 15:51:14 -05:00
proguard-rules.pro Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00