I just would like to tweak the View of an ActionBar MenuItem by code.
Unfortunately, it seems that getActionView always return null!
My code:
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.