android tutorial - How to use textinputlayout in android | Developer android - android app development - android studio - android app developement
How to use textinputlayout in android
Make sure the following dependency is added to your app's build.gradle file under dependencies:
Show the hint from an EditText as a floating label when a value is entered.
For displaying the password display eye icon with TextInputLayout, we can make use of the following code:
where app:passwordToggleEnabled="true" & android:inputType="textPassword" parameters are required. app should use the namespace xmlns:app="http://schemas.android.com/apk/res-auto"