Fixing CAB delete item.

I see. How are the same actions accomplished in the iOS version?


On Sat, Aug 9, 2014 at 3:49 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 am looking for how to remove edit button when more than one item is
> selected(for the time being it will edit the first item of all the multiple
> selected items).
> I have to add the feature of changing its color/appearance when we select
> the item.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pooja3008/Peacetrack-Android/pull/1/files#r16027499>.
>