0
I created this alertDialog but I wonder if instead of having an icon when it appears, if it is possible to all have another color or even use an image like yours (Background). E Assign to the buttons a background.
public void icon (View View){
AlertDialog.Builder dialog = new AlertDialog.Builder (this);
dialog.setMessage("Exemplo com icon");
dialog.setPositiveButton("NEXT", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
setContentView(R.layout.next);
}
});
dialog.setTitle("Icone");
dialog.setIcon(R.drawable.buttonum);
dialog.show();
}
Thank you so much for your help. But I still have a problem. In the layout I created has a button and when I load it opens another layout but does not close the alertdialog
– sergiopm
uses dialog.Dismiss when you want to close
– Icaro
Thank you very much Icaro ;)
– sergiopm