android - appcompat v21 toolbar and actionmode not working -



android - appcompat v21 toolbar and actionmode not working -

i have root fragment next toolbar:

<android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" app:theme="@style/apptheme.toolbar" style="@style/toolbar" />

i proceeded setting toolbar back upwards actionbar:

actionbaractivity activity = (actionbaractivity)getactivity(); activity.setsupportactionbar();

when calling activity.startsupportactionmode(callback), non of callbacks ever fired , actionmode never started.

playing around i've discovered using mtoolbar.startactionmode(callback) work, can't utilize because of compatibility material design styles doesn't seem work when using native actionmode

android material-design

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -