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.

Leave a Comment