final AlertDialog.Builder alert = new AlertDialog.Builder(DeleteActivity.this); alert.setTitle("Conformize"); alert.setMessage("Are you sure won't to Delete"); alert.setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); alert.show(); } });
Saturday, 26 August 2017
Create Alert Dialog box
Subscribe to:
Post Comments (Atom)
HOW TO CREATE CIRCLE IMAGE VIEW
Step 1: implementation 'de.hdodenhof:circleimageview:3.0.0' Step 2: <de.hdodenhof.circleimageview.CircleImageView xmlns:ap...
-
Needs 1.CalendarActivity.java 2.activity_calendar.xml 3.calendarbean.java 4.dependencies { implementatio...
-
Needs 1. implementation 'com.daimajia.swipelayout:library:1.2.0@aar' 2. DividetItemDecoration.java 3.MainActivity.java ...
-
Needs 1.recording_item_layout.xml 2.activity_recording_list.xml 3.activity_record.xml 4.Recording.java 5. Reco...
No comments:
Post a Comment