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
Post a Comment