TourGuide icon indicating copy to clipboard operation
TourGuide copied to clipboard

Support for BottomNavigation menu items

Open dimgrav opened this issue 6 years ago • 1 comments

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?

dimgrav avatar Mar 19 '18 09:03 dimgrav

try change ((View)bottomNav.getMenu().getItem(2)) to findViewbyId

jackyhieu1211-hn avatar Sep 16 '19 09:09 jackyhieu1211-hn