0

I'm trying to create a Listview inside a dialog that populates with an image and two TextViews per row.

I don't know what kind of Dialog to use, how to populate it, and set the adapter. I set a few Listviews without dialogs previously on other activities and I tried doing the same for my dialog (in a non-Listview activity) but it just wouldn't work. It gave me a NullPointerException.

Any idea or at least examples of how I can accomplish this?

(I have an object array from which I wish to populate it. I need to be able to use array[#].getIcon for image, array[#].getName for one textview, and array[#].getDescription for the other.)

Pkmmte
  • 2,822
  • 1
  • 31
  • 41
  • 1
    There's [lots of tutorials](https://www.google.com/search?q=dialog+with+listview) on this already... – Cat Aug 04 '12 at 01:25
  • Same questions, answered here: http://stackoverflow.com/questions/2874191/is-it-possible-to-create-listview-inside-dialog#answer-2874302 – Archie.bpgc Aug 04 '12 at 05:31

0 Answers0