KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm working on creating a custom dialog to get input from the user. I've noticed that when I use an AlertDialog I can add widgets such as an EditText to the AlertDialog using setView() method. I'm looking into customizing AlertDialog and noticed that Dialog has a method setContentView() . In the subclass of AlertDialog I could use either setContentView() or setView() . One difference I've noticed is when I use setView() on an AlertDialog , I can see Positive & Negative buttons. In my subclass of AlertDialog , using setContentView() I don't get the Positive & Negative buttons. Can anyone explain other differences? Thanks.
Tags (comma-separated)
Save Edits
Cancel