Fixing CAB delete item.

How would edit work in that case? There's also an edit button in the CAB
menu.

Also, do you know why a list item does not change appearance when selected?
On Aug 9, 2014 3:27 PM, "pooja3008" <notifications@github.com> wrote:

> In PeaceTrack/src/com/peacetrack/views/cohorts/ListCohortsActivity.java:
>
> > +  public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) {
> > +    // getSupportActionBar().setSubtitle(
> > +    // "Position: " + ((AdapterContextMenuInfo) menuInfo).position);
> > +    tempmenuinfo = menuInfo;
> > +  }
> > +
> > +  @Override
> > +  public void onResume() {
> > +    super.onResume();
> > +    getSupportActionBar().setDisplayShowHomeEnabled(false);
> > +    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
> > +
> > +    cohortsListView = (ListView) findViewById(R.id.cohortslistView);
> > +    createCohortsList();
> > +
> > +    cohortsListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);
>
> I have done multiple choice mode so that user can delete(if he/she wants)
> multiple cohorts at the same time, rather than deleting each individually.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pooja3008/Peacetrack-Android/pull/1/files#r16027411>.
>