Created
June 13, 2019 07:23
-
-
Save PatilShreyas/ed547d917b1c5b28af2864168666ebbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BottomSheetMaterialDialog mBottomSheetDialog = new BottomSheetMaterialDialog.Builder(this) | |
.setTitle("Delete?") | |
.setMessage("Are you sure want to delete this file?") | |
.setCancelable(false) | |
.setPositiveButton("Delete", R.drawable.ic_delete, new BottomSheetMaterialDialog.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialogInterface, int which) { | |
Toast.makeText(getApplicationContext(), "Deleted!", Toast.LENGTH_SHORT).show(); | |
dialogInterface.dismiss(); | |
} | |
}) | |
.setNegativeButton("Cancel", R.drawable.ic_close, new BottomSheetMaterialDialog.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialogInterface, int which) { | |
Toast.makeText(getApplicationContext(), "Cancelled!", Toast.LENGTH_SHORT).show(); | |
dialogInterface.dismiss(); | |
} | |
}) | |
.build(); | |
// Show Dialog | |
mBottomSheetDialog.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment