How to pre-fill an Edittext?

I have an application in which I store user names. As soon as the user clicks on his username, he goes to the login screen. It can be done that the username is already entered on the login screen. So that the user only needs to enter his password? Any help would be greatly appreciated. Thank you

+5
source share
2 answers
+7
source

you can use the following code in xml:

android:text="<your text here>"

or

android:hint="<your text here>"

android:text android:hint, , , - .

+5

All Articles