Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-12-24 Thread Mark Murphy
On Sat, Dec 24, 2011 at 7:31 AM, String wrote: > I have found that the the Done button WILL invoke onDestroyActionMode() if > your callback is an instance of  AbsListView.MultiChoiceModeListener, rather > than simply ActionMode.Callback. You need to implement one more method > (for onItemCheckedSt

Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-12-24 Thread String
On Tuesday, September 27, 2011 5:41:46 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Mon, Sep 26, 2011 at 8:06 AM, MrArti wrote: > > > I've tried to reproduce the ActionMode with the following ActionMode > > callback started when the user clicks on the button but the items's > > selection stat

Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-09-28 Thread MrArti
> > Assuming that by "when the ActionMode is destroyed" you mean when the > user clicks the Done button, I have seen that same issue and I have > not determined yet how to get past it. > > For cases where you finish() the action mode, you can call > clearChoices() in onDestroyActionMode(). However

Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-09-27 Thread Mark Murphy
On Mon, Sep 26, 2011 at 8:06 AM, MrArti wrote: > Is it possible to activate the selection mode on a ListView configured > with CHOICE_MODE_MULTIPLE_MODAL from an option item ? The default > behavior is to do a long click on the list but I would like to achieve > the same with a button in the Actio

[android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-09-27 Thread MrArti
Hello, Is it possible to activate the selection mode on a ListView configured with CHOICE_MODE_MULTIPLE_MODAL from an option item ? The default behavior is to do a long click on the list but I would like to achieve the same with a button in the ActionBar. I've tried to reproduce the ActionMode wi