Skip to content Skip to sidebar Skip to footer

Targeting Action Bar Menu Items With Showcaseview

How can I target the action bar menu items with ShowCaseView. I have tried using the following code located here and I am getting ITEM_ACTION_ITEM cannot be resolved or is not a fi

Solution 1:

For future Googlers, I have found the answer.

new ShowcaseView.Builder(getActivity())
    .setTarget(new ActionItemTarget(getActivity(), R.id.answers)) //Here is where you supply the id of the action bar item you want to display
    .setContentTitle("Title")
    .setContentText("Description")
    .hideOnTouchOutside()
    .build();

Post a Comment for "Targeting Action Bar Menu Items With Showcaseview"