You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Purdue Android Programming
hi guys,
so i have a dialogBox that pops up with a listView that allows
multiple selection. what im trying to do is have certain of the
entries in the listView be automatically selected ( by which i mean
the little tick mark at the right should be selected when the list
comes up) ... i have literally tried every possible variant of
setSelection including even something called PostDelayed which i was
told would run after a certain delay and then select items for me but
none of them seem to be working ...
any help will be seriously appreciated.
thank you,
Sahir.
Rodrigo Haragutchi
unread,
Mar 31, 2011, 12:42:07 PM3/31/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to purdue-androi...@googlegroups.com, sahir contractor
is there a reason why you're using listView inside a dialog? If you're ok with just text for each item, you can look at this:
The second parameter in the setSingleChoiceItems() method is an integer value for the checkedItem, which indicates the zero-based list position of the default selected item. Use "-1" to indicate that no item should be selected by default.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Purdue Android Programming
well i guess the reason im using the listView is because im already in
a dialog box and dont want to spawn another dialog for this list.
So if i have to work with this list view that allows multiple
selection, is there a way to have certain values selected during
startup.
Thanks
Sahir.