I’m creating a login form for my Android app, i make a single layout for both create account and login, on button click i want to change edit text hint property from ‘enter user name’ to ‘Re enter username’ and also want to change other edittext password property to true can any one help me how to change both property from code dynamicaly i saw all methods of edit text but not found any clue.
Share
You can use .setHint() method on either your TextView or EditText.
http://developer.android.com/reference/android/widget/TextView.html#setHint(int)
EditText is an extended class of TextView. Hence, most of the methods (if not all) of TextView will work well with EditText.