How can I show an image when I open an AlertDialog
?
Or is there any other way to show an image except ImageView
?
I got this code, but it's only showing text and I can't seem to find way to show an image:
private void AlertDialogz() {
// TODO Auto-generated method stub
AlertDialog.Builder alert = new AlertDialog.Builder(context);
alert.setTitle("Note");
alert.setMessage(context.getString(R.string.lyrics));
alert.setCancelable(false);
alert.setPositiveButton("Zatvori", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
dialog.dismiss();
}
});
}