Александр Репин
10/18/2021, 4:27 PMdewildte
10/18/2021, 7:37 PMVisualTransformation
interface?Александр Репин
10/19/2021, 10:00 AMVisualTransformation
does not fully meet my requirements.
I need specific view for each symbol in the row
Row
-> Box1
-> Box2
-> Box2
The controller of the view should track clicks on keyboard and add new character to the value.
The only solution I found is to use multiple TextField
, one for each BoxN
. In this case the controller should move focus to another BoxN's TextField
after value entered. But if do so, then I should somehow set caret position to the end when a BoxN
clicked. And check that only the last empty BoxN
is focused.
There's another option - use one transparent TextField
and display values. But it looks like a hack.
@dewildte
It should look like thisdewildte
10/19/2021, 2:25 PMFocusRequester
for each box.
As the user enters valid characters you could use the requesters to shift focus to the next box as needed. I suggest ignoring any characters that are invalid. Once the last box contains valid text you can continue on with the rest of the user flow.
Deletion can be handled as well by detecting certain key strokes and performing the needed operations in response.Zach Klippenstein (he/him) [MOD]
10/19/2021, 4:39 PM