I found out that the below class has this isActionButton () method
android.support.v7.internal.view.menu.MenuItemImpl
Note that MenuItem is the interface, not the class from which the intended instance of the menuitem object was created.
If you are using the android.support.v7 compatibility package, simply highlight the menuitem MenuItemImpl object.
This is done as follows:
((MenuItemImpl)item).isActionButton()
Jimmy lenloa
source share