Targeting Showcase view to tool bar Home icon:-
ViewTarget navigationButtonViewTarget = ViewTargets.navigationButtonViewTarget(mToolbar);
showcaseView = new ShowcaseView.Builder(this)
.withMaterialShowcase()
.setStyle(R.style.CustomShowcaseTheme)
.setTarget(navigationButtonViewTarget)
.setOnClickListener(this)
.build();
showcaseView.setContentTitle("Menu");
showcaseView.setContentText("Browse the app's extended features for a hassle-free shopping experience");
showcaseView.setButtonText(getString(R.string.next));
Targeting Showcase view to tool bar action Items:-
Target reOrderTarget = new Target() {
@Override
public Point getPoint() {
return new ViewTarget(mToolbar.findViewById(R.id.reorder)).getPoint();
}
};
showcaseView.setShowcase(reOrderTarget, true);
ViewTarget navigationButtonViewTarget = ViewTargets.navigationButtonViewTarget(mToolbar);
showcaseView = new ShowcaseView.Builder(this)
.withMaterialShowcase()
.setStyle(R.style.CustomShowcaseTheme)
.setTarget(navigationButtonViewTarget)
.setOnClickListener(this)
.build();
showcaseView.setContentTitle("Menu");
showcaseView.setContentText("Browse the app's extended features for a hassle-free shopping experience");
showcaseView.setButtonText(getString(R.string.next));
Targeting Showcase view to tool bar action Items:-
Target reOrderTarget = new Target() {
@Override
public Point getPoint() {
return new ViewTarget(mToolbar.findViewById(R.id.reorder)).getPoint();
}
};
showcaseView.setShowcase(reOrderTarget, true);