Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jetpack compose TextField, is there a way to show a drag handle bubble to move cursor position when editing text?

When editing a TextField I would like to show a bubble at cursor position like

cursor drag handle

like image 638
Tom Berghuis Avatar asked Oct 23 '25 23:10

Tom Berghuis


1 Answers

This is not possible right now.

This handle is represented by the TextFieldCursorHandle view.

For it to appear state.handleState must be equal to HandleState.Cursor.

At the moment this state is set only inside the tap handler.

All of these elements are private or internal, so you can't change this behavior.

I suggest you open feature request on the compose issue tracker.

like image 189
Philip Dukhov Avatar answered Oct 26 '25 15:10

Philip Dukhov