Open dimgrav opened 6 years ago
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.
playOn(bottomNav.getMenu().getItem(2).getActionView())
Is there support for BottomNavigation and OptionsMenu?
try change ((View)bottomNav.getMenu().getItem(2)) to findViewbyId
((View)bottomNav.getMenu().getItem(2))
findViewbyId
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).
playOn(bottomNav.getMenu().getItem(2).getActionView())
returns NullPointerException as well.Is there support for BottomNavigation and OptionsMenu?