What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-28 03:19:04
simple yes no dialog android default java
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { switch (which){ case DialogInterface.BUTTON_POSITIVE: //Ye... Add solution -
Kotlin 2021-09-19 05:14:04
how to do multiple button dialog kotlin
// kotlin code alert dialog builder with multiple buttons // context = this or applicationContext val dialog = AlertDialog.Builder(context) val bNames = arrayOf<CharSequence>("button 1", "button 2", "button 3") dialog.s... Add solution -
Other 2021-09-17 19:02:02
android alert builder code
AlertDialog alertDialog = new AlertDialog.Builder(getApplicationContext()) .setIcon(android.R.drawable.ic_dialog_alert) .setTitle("Goodbye!") .setMessage("Are you sure you want to exit?") .setPositiveButton("Yes"... Add solution -
Other 2021-09-17 00:39:03
alert dialog layout
View customLayout = LayoutInflater.from(MainActivity.this).inflate(R.layout.custom_dialog, null); final TextInputLayout editMessage = customLayout.findViewById(R.id.edit_message); AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this) ... Add solution -
Other 2021-09-14 03:34:01
create alert dialog from adapter
AlertDialog.Builder alertbox = new AlertDialog.Builder(v.getRootView().getContext()); alertbox.setMessage("No Internet Connection"); alertbox.setTitle("Warning"); alertbox.setIcon(R.drawable.trn_03); alertbox.setNeutra... Add solution -
Java 2021-09-06 10:56:04
show full screen popup in android
Rect displayRectangle = new Rect(); Window window = MainActivity.this.getWindow(); window.getDecorView().getWindowVisibleDisplayFrame(displayRectangle); final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this,R.style.CustomAlertDialo... Add solution -
Other 2021-09-03 05:42:02
how to change color of radi button selected in alerdialog
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder( getActivity(), R.style.MaterialThemeDialog); alertDialogBuilder.setTitle(R.string.image_resolution); alertDialogBuilder.setSingleChoiceItems(R.array.qual... Add solution
Best helpers
Ranking is empty