Skip to content

Candidates view#1150

Merged
Julow merged 6 commits into
masterfrom
candidates_view
Dec 28, 2025
Merged

Candidates view#1150
Julow merged 6 commits into
masterfrom
candidates_view

Conversation

@Julow

@Julow Julow commented Dec 28, 2025

Copy link
Copy Markdown
Owner

This implements the view used in #1137

The `CandidatesView` is implemented as a `LinearLayout` that is divided
horizontally with up to 3 `TextView`. It might in the future contain
buttons on the sides.

The candidate view is nested into the input view rather than using
Android's `setCandidatesView` and callbacks as the API is unreliable and
complicated.

The first suggestion goes in the middle to be more accessible. The
second suggestion goes on the right to be more accessible to the
right-handed, because it must go somewhere.
The `CurrentlyTypedWord` class tracks the word that is being typed. It's
implemented on the same model as Autocapitalisation and avoid expensive
IPC calls when possible.

The `Suggestions` class is where the suggestion lookup should go. It
currently just echoes the current word.
The current word is replaced by the pressed suggestion.
When selection is entered, the current word is cleared.
Currently, refreshing the current word on each key event.
Refreshing is done after a short delay, to ensure the editor has handled
the event.
@Julow Julow merged commit 4d4c22b into master Dec 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant