java - How to return from an AlertDialog to the AlertDialog before -
how can return alertdialog
called , offers more buttons , user clicks on 1 of buttons, new alertdialog
pops input field. if check if user input e.g. numeric, how can return alertdialog
offered before?
i'd suggest using dialogfragment
support library each of these dialogs. add onclicklisteners each of buttons of first dialogfragment
, show second dialogfragment
in onclick
.
there should not necessity checking if input number if set appropriate input type first.
when user taps button on second dialogfragment
, call dismiss()
.
Comments
Post a Comment