Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActionMode with Toolbar offsetting content

Ohoy. As Im upgrading my app to L, I replaced ActionBars with Toolbars and whenever I start an ActionMode now it pushes down all the content. (I suppose this is because the ActionBar is once again shown in order to display the ActionMode.) Is it possible to display the ActionMode as an overlay, or have it reside within the Toolbar?

Also no styling options seem to apply to it, which makes me wonder whether theres a new way to style it. Any ideas?

Im using AppCompat V7 21 and so far Ive tried windowActionModeOverlay=true and toolbar.startActionMode(..)

List with ActionMode running

like image 968
zoltish Avatar asked Oct 19 '14 13:10

zoltish


1 Answers

Use <item name="windowActionModeOverlay">true</item> in your app theme (without android:).

like image 157
André Mion Avatar answered Sep 20 '22 15:09

André Mion