How can I add a placeholder text to EditText in the class that isn\'t in the XML?
EditText
I have the following EditText in my code which will be sh
If you mean the location where you will add it in the layout. You can define a container like a FrameLayout and add this EditText to it when it is created.
FrameLayout layout = (FrameLayout) findViewById(R.id.container); layout.addView(name);