Implementation of full-screen-dialogs from material guidelines.
repositories {
jcenter()
}
dependencies {
...
compile('com.nikialeksey:fullscreendialog:<latest version>@aar') {
transitive true
}
...
}
new DissmissOnActionDialog(
new DismissOnCloseDialog(
new FsDialog(
context,
R.style.AppTheme,
new FsDialogToolbar(context, "Title",
new FsCloseButton(
new SimpleButton(
new ClickListener() {
@Override
public void onClick() {
Toast.makeText(context, "Close", Toast.LENGTH_LONG).show();
}
}),
closeIcon),
new FsActionButton(
new SimpleButton(
new ClickListener() {
@Override
public void onClick() {
Toast.makeText(context, "Action", Toast.LENGTH_LONG).show();
}
}),
"Action")),
content))).show();