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

Utkarsh Tiwari

01/31/2022, 8:30 AM
Hi, Is there any way to enable this cursor handle in OutlinedTextField to allow convenient dragging of cursor across characters? Two cursor handle seem to appear on long press but I want to single handle for short tap and drag.
z

Zach Klippenstein (he/him) [MOD]

02/01/2022, 2:31 AM
It should appear on single short tap, can you send a screen recording? Which version of compose and android is this?
u

Utkarsh Tiwari

02/02/2022, 2:41 AM
Hi, Thank you for your response. I am on compose
1.0.5
The following video was recorded on Pixel4a with Android 12:
And sorry, I made a mistake in the original message. I am using
BasicTextField
for the above search input implementation:
Copy code
BasicTextField(
    value = textFieldValue,
    onValueChange = onValueChange,
    keyboardActions = KeyboardActions(onSearch = onSearch),
    keyboardOptions = KeyboardOptions(
        imeAction = ImeAction.Search
    ),
    singleLine = true,
    cursorBrush = SolidColor(DsColors.textPrimary),
    textStyle = textStyle
)
z

Zach Klippenstein (he/him) [MOD]

02/02/2022, 3:37 AM
Please file a bug
🙆‍♂️ 1
🙏 1
u

Utkarsh Tiwari

02/02/2022, 11:07 PM
c

Colton Idle

02/06/2022, 9:02 PM
One person brings up that they can't get rid of the handle, and another brings up that the handle won't show up. @ zach 😂
z

Zach Klippenstein (he/him) [MOD]

02/07/2022, 2:18 AM
I need to get a handle on these bugs
😂 1
2 Views