0
         TextField(
                    value = text,
                    onValueChange = {
                        myViewModel.setText(it)},
                    label = null,
                    placeholder = {
                        Text(
                            "Ask me anything",
                            fontSize = 14.sp,
                            color = MaterialTheme.colorScheme.onTertiary
                        )
                    },
                    shape = RoundedCornerShape(25.dp),
                    modifier = Modifier
                        .fillMaxWidth()
                        .padding(horizontal = 18.dp)
                        .weight(1f),
                    keyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences)
                )

So, for example, I put large amount of text and I want to paste something between two lines of text I long press on text field and the focus moves up and selects the text above or below

Text copying

0 Answers0