Questions tagged [android-actionmode]

Provide alternative interaction modes and replace parts of the normal UI until finished.

Represents a contextual mode of the user interface. Action modes can be used to provide alternative interaction modes and replace parts of the normal UI until finished. Examples of good action modes include text selection and contextual actions.

201 questions
95
votes
11 answers

Display ActionMode over Toolbar

I am trying to use the android.view.ActionMode with the new android.support.v7.widget.Toolbar, in addition to the traditional android.app.ActionBar. I am able to display it with: toolbar.startActionMode(callback); The problem is that the ActionMode…
80
votes
2 answers

onPrepareActionMode not called when creating ActionMode

I just finished adjusting one of my apps to the new v22.1.1 support & appcompat libraries, see here and here for more details. When I did some testing, something was off with the ActionModes I'm using. When you start a ActionMode using a…
43
votes
3 answers

How to make contextual actionmode bar overlay my layout instead of "pushing" it down

I have implemented my own viewgroup for my application. Using actionbar is not an option for various reasons so in my viewgroup I have my own "actionbars" one on top and one in the bottom. Image 1 illustrates my current layout. As you can see there…
ChD Computers
  • 3,135
  • 3
  • 23
  • 33
41
votes
3 answers

how to Customize the Contextual Action Bar using appCompat in material design

MainActivity.java I've implemented MultiChoiceModeListener in this class and below is the code: on listView: listView.setMultiChoiceModeListener(MainActivity.this); listView.setChoiceMode(listView.CHOICE_MODE_MULTIPLE_MODAL); @Override …
Sagar Maiyad
  • 12,655
  • 9
  • 63
  • 99
27
votes
9 answers

When using ActionMode, the status bar turns black on Lollipop

I have a status bar with the following in the theme set on it: