so my final solution is

A. create custom adapter based on CursorAdapter (or BaseAdapter)
B. create custom row layout in xml and inflate it in adapter
C. create AlertDialog and setItem(new CharSeq[0], null) - this will
create default list with default look and feel, without this code
listView is not initialized
D. in onPrepareDialog get ListView from dialog and set custom adapter
with new data, add click event handler which is called with item
position and id of the row(if cursor adapter was used)

when I tried creating custom dialog with scroll view and list view I
had to additionally setup layout_width and height for the dialog AFTER
it was created (so in onPrepareDialog callback) if not dialog was
quite small.

PK

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to