Here we are going to see about how to get input text from user in dialog using edittext.Moving ahead from custom dialog example and other dialog example, here we are going to see about how to get input text from user in dialog using edittext. In some cases we may need to get input from user in dialog. At that time we need no to use custom dialog instead of that you can use simple alert dialog itself by using setView(View view) property. Using setView() we can set any view to alert. Here we set the edittext view to setView() to get input from user.
↧