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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -