Android - Dialog animation -
i got customised dialog popup, simple options, "exit". when user clicks exit button, dialog cancels , calls method finish() activity.
my question is, how forcefulness activity wait until dialog exit animation done, finish activity.
thanks!
try this:
@override public void onclick(dialoginterface dialog, int which) { dialog.dismiss(); handler handler = new handler(); handler.postdelayed(new runnable() { @override public void run() { youractivity.this.finish(); } }, 2000); } android animation dialog
No comments:
Post a Comment