Use setAdapter() and supply your own ListAdapter, set up to create rows that contain whatever you like.
On Thu, Jun 23, 2011 at 2:28 AM, ArcDroid <[email protected]> wrote: > Hello, > Is there an easy way to add pictures to an alertdialog list? > > > final CharSequence[] items = {"Foo", "Bar", "Baz"}; > > AlertDialog.Builder builder = > new > AlertDialog.Builder(MyChats.this); > builder.setTitle("Make your > selection"); > builder.setItems(items, new > DialogInterface.OnClickListener() { > public void > onClick(DialogInterface dialog, int item) { > // Do something with > the selection > } > }); > AlertDialog alert = > builder.create(); > alert.show(); > > > > > > > > > > > > > > Thanks, > http://www.arcdroid.com > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

