What’s the recommended way to make a TextField rea...
# compose
j
What’s the recommended way to make a TextField readonly and clickable, but not focusable?
a
I would like to hear more details about the motivating use case. note that instead of using TextField, you can do
Text(Modifier.clickable(...))
which is a readonly, clickable, nonfocusable text. but I'm not sure without knowing more about your problem whether that answers your question
j
I need to implement a design in which there's a field that looks like a TextField, except that it's a datepicker in which you can't type your own text and it should open a date picker on click. For now I fixed it by putting the TextField in a Box with a clickable overlay. It's not the nicest solution, but it's the design that I have to implement and it works.
a
I see. there's no currently recommended better way to do that. I'll take this usecase as a feedback that maybe we ought to make TextField styling components like
private fun IconsWithTextFieldLayout
public in the future
👍 1
215 Views