I know how to do this on Java. I copied and paste the code from Java to Kotlin and Android Studio changed to this:
auth_password_text.setInputType(InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD)
But I'm receiving a message (grey not yellow like warning)

I search and found only java and react native answer but not was the best/right way to do this in Kotlin.
Thank you in advance!
In Kotlin you can set some properties accessing directly variable instead of calling setter method, that's the meaning of the warning you are getting.
You can remove warning like this:
auth_password_text.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With