android - set Icon on right side of a Item in AlertDialog.setItems -
i use alertdialog method , inside dialog make list setitems.
it possible add icon in right side of item?
my example code:
final charsequence ex[] = { html.fromhtml("text"), html.fromhtml("text"), html.fromhtml("text") }; alertdialog.builder dialog = new alertdialog.builder(getactivity()); dialog.settitle("title"); dialog.seticon(r.drawable.icon); dialog.setitems(ex, new dialoginterface.onclicklistener(){ public void onclick(dialoginterface d, int w){ // something... } }); // or dialog.setsinglechoiceitems(ex, -1, new dialoginterface.onclicklistener(){ public void onclick(dialoginterface d, int w){ // something... } }); dialog.create(); dialog.show();
or in simple way, use singlechoiceitems , change radio icon personal icon.
thanks.
Comments
Post a Comment