Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement