Alex Rivera | Logout

Android - default value in editText

Asked 2012-04-27T10:33:16.877
39

In my app I have an edit user details page and I want to display the current name, email address etc in the corresponding editText fields and then the user can just erase that and enter a new one if they want.

Is there a way to do this? Thanks for any help

Edit
Report

1 Answer

29

From the xml:

  android:text="yourtext"
answered 2012-04-27T10:40:57.680

Your Answer