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.
More Related Contents:
- How to get ActionBar view?
- Android 2.1 View’s getDrawingCache() method always returns null
- onMeasure custom view explanation
- Set the absolute position of a view
- How to get the ActionBar height?
- setBackground vs setBackgroundDrawable (Android)
- How to hide action bar before activity is created, and then show it again?
- What is the size of ActionBar in pixels?
- Remove icon/logo from action bar on android
- getActionBar returns null
- How to implement a view holder?
- How can I force the Action Bar to be at the bottom in ICS?
- Programmatic Views how to set unique id’s?
- Returning from an activity using navigateUpFromSameTask()
- Android : Get view Reference to a Menu Item
- ActionBar in a DialogFragment
- How to add Action Bar from support library into PreferenceActivity?
- Remove application icon and title from Honeycomb action bar
- Android set height and width of Custom view programmatically
- ActionBar background image
- Menu Items are not showing on Action Bar
- The application icon does not show on action bar
- How to display both icon and title of action inside ActionBar?
- Android action bar not showing overflow
- ActionBar MenuItem Divider
- How do I declare an extended height Toolbar/Action Bar on Android Lollipop?
- Android — How to allow horizontal and vertical scrolling
- How do I show Overflow Menu Items to Action Bar in Android
- Custom view for Menu Item
- How do I get a copy of the Android overflow menu icon? [closed]