Thanks Mark. I will try this.

Also, I just came across a multiple choice Dialog option in API Demos
- App - Dialog - Repeat Alarm. But I don't see the supporting code for
this anywhere. Would you or anyone have any idea on this? I think this
is a better way to do it than Context Menu.

Abhi

On Dec 10, 10:49 am, "Mark Murphy" <mmur...@commonsware.com> wrote:
> > I have a ListView with 5 items. Each of the items can be long pressed
> > to open a Context Menu. The Menu has 5 options and I want them to be
> > selectable, by having a check box. I know of the multiple choice
> > listview but was not sure how to have this checkbox feature in a
> > ContextMenu.
>
> > Does anyone know if this is possible and if so, how?
>
> Try setCheckable(true) on the MenuItem. I haven't tried this, but it's in
> the API...
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html

-- 
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