AndroidTabbedDialog icon indicating copy to clipboard operation
AndroidTabbedDialog copied to clipboard

Dismiss Dialog

Open MiTHUN24 opened this issue 9 years ago • 2 comments

how to dismiss Dialog without using any button is there any method to dismiss dialog please let me know

MiTHUN24 avatar Jul 22 '16 11:07 MiTHUN24

TabDialogFragment returns DialogFragment type so you could: DialogFragment df = TabDialogFragment.createBuilder(MainActivity.this, getSupportFragmentManager()) .setTitle("hello") .setSubTitle("subtitle") .setTabButtonText(new CharSequence[]{"Tab1", "Tab2"}) .setPositiveButtonText("Love") .setNegativeButtonText("Hate") .setNeutralButtonText("WTF?") .setRequestCode(REQUEST_SIMPLE_DIALOG) .show(); now after the event you are listening to has occurred, simply call df.dismiss(); Make sure that df is global if you want to use it elsewhere in the class.

Datron avatar Jun 12 '17 10:06 Datron

DIALOG_EXAMPLE_NAME.dismiss(); // this works on every dialog lib or java default i saw

Canoir avatar Dec 29 '17 11:12 Canoir