Kinda dumb question, but isn't there an option to ...
# android
n
Kinda dumb question, but isn't there an option to make the Edit Text required (must be inputted). I figured it would be available in the layout designer but it's not. I understand that it can be done programmatically but still. This seems like a basic function, I might've missed something, if not is there a feature request or a library or something? Thanks in advance! did google no results related to what i wrote above.
google 4
z
n
Thank you. This is what I was looking for.
c
But this is Compose right? how does the Material Design Spec solve the Compose question?
g
Why do you think it's Compose?
c
Oh I guess it’s not, I have been using All Unreads lately and thought it was in the Compose group.. nm
z
EditText
is a “legacy” concept, it’s called
TextField
in Compose
👍🏻 2
c
Yeah I have done both. I just thought maybe there was some example code of doing required fields in Compose, though it’s probably not hard. Was doing a piece today with 2 buttons and was hoping to have a lambda for whether the button was enabled. Did not find one.