I want to put a placeholder text in EditText, but isn't it in xml?
final EditText name = new EditText(this);
Do I have to do it on the code? What should I do next?
As a code, you can put a predefined string id in string.xml in setHint(int).
In xml, android:hint="What you want to say"
can be used like this.
© 2024 OneMinuteCode. All rights reserved.