https://kotlinlang.org logo
#compose
Title
# compose
z

Zoltan Demant

02/18/2022, 3:18 PM
Is it possible to disable the text selection handles that show up in
TextFields
after a long press?
DisableSelection
exists and works for
Text
, but not
TextField
.
j

Joseph Hawkes-Cates

02/19/2022, 5:24 PM
I could not find a way to disable it altogether but there is a text selection local composition provider that you can set the color of the selection handle. I set it to transparent with worked for my field. It’s still there though so if your text field has an outline the handle will still cover the outline a bit.
z

Zoltan Demant

02/20/2022, 5:46 AM
Thanks, I guess that's as far as I can get with it currently. There's a bug in compose related to the handles and I was hoping to work around it until it's been officially fixed!
z

Zach Klippenstein (he/him) [MOD]

02/22/2022, 6:58 PM
What’s the handle bug?
z

Zoltan Demant

02/23/2022, 4:56 AM
8 Views