Appcompat v21 toolbar and action not working
I have a root snippet with the following 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 then went on to configure the toolbar as the support action bar:
ActionBarActivity activity = (ActionBarActivity)getActivity();
activity.setSupportActionBar();
activity.startSupportActionMode(callback)
No callbacks are called when called , and the actionMode is never triggered.
While playing around with this, I found that using mToolbar.startActionMode(callback)
does work, but I can't use that due to compatibility, and material styles don't seem to work when using a native actionmode
+3
source to share
No one has answered this question yet
Check out similar questions: