How can I add a placeholder text to EditText in the class that isn’t in the XML?

I have the following EditText in my code which will be shown in alertdialog:

    final EditText name = new EditText(this);

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *