https://kotlinlang.org logo
#android
Title
# android
n

Nikola Milovic

01/14/2020, 8:54 PM
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

Zach Klippenstein (he/him) [MOD]

01/14/2020, 9:11 PM
n

Nikola Milovic

01/14/2020, 9:13 PM
Thank you. This is what I was looking for.
c

codeslubber

01/14/2020, 9:35 PM
But this is Compose right? how does the Material Design Spec solve the Compose question?
g

gildor

01/14/2020, 11:21 PM
Why do you think it's Compose?
c

codeslubber

01/14/2020, 11:35 PM
Oh I guess it’s not, I have been using All Unreads lately and thought it was in the Compose group.. nm
z

Zach Klippenstein (he/him) [MOD]

01/15/2020, 1:43 AM
EditText
is a “legacy” concept, it’s called
TextField
in Compose
👍🏻 2
c

codeslubber

01/15/2020, 3:50 AM
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.
2 Views