getActionView() of my MenuItem return null
you should use
app:actionLayout="@layout/menu_actionbar_basket"
thats the trick if you use
android:actionLayout="@layout/menu_actionbar_basket"
you would always get null exception in default toolbar.
getActionView()
only works if there's a custom actionView from setActionView
.