TourGuide
TourGuide copied to clipboard
Support for BottomNavigation menu items
Hi,
I want to implement an app tour which mainly includes BottomNavigation items. I casted MenuItem to View like the code snippet below, but it doesn't do the trick (which I didn't expect it to do anyway).
TourGuide tourHandler = TourGuide.init(this).with(TourGuide.Technique.CLICK)
.setPointer(new Pointer())
.setToolTip(new ToolTip().setTitle("Title").setDescription("Description"))
.setOverlay(new Overlay())
.playOn(((View)bottomNav.getMenu().getItem(2)));
playOn(bottomNav.getMenu().getItem(2).getActionView())
returns NullPointerException as well.
Is there support for BottomNavigation and OptionsMenu?
try change ((View)bottomNav.getMenu().getItem(2))
to findViewbyId