I have an EditText in a .xml file with LinearLayout and want to add it as the setView()
parameter on an AlertDialog. Is this possible? Here's what I've tried:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
final EditText input = new EditText(this);
builder.setView(input);
But the dialog is blank when launched. What am I doing wrong?