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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

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