deano2390 / MaterialShowcaseView

A Material Design themed ShowcaseView for Android
Apache License 2.0
2.72k stars 526 forks source link

Unable to highlight bottomnavigation menu. #193

Open rockstarsantosh1994 opened 4 years ago

rockstarsantosh1994 commented 4 years ago

Dear Sir, in MaterialShowCaseView setTarget is only set to Views only . How to highlight bottomnavigation position. please help

Thanks & Regards, Santosh Pardeshi

bs-q commented 2 years ago

You can get child view of BottomNavigationView by calling findViewById. The id of child view is the id you set in navigation menu. new MaterialShowcaseView.Builder(this) .setTarget(viewBinding.bottomNav.findViewById(R.id.event)) .setToolTip(toolTip1) .withCircleShape() .setTooltipMargin(30) .setShapePadding(50) .setDismissOnTouch(true) .setMaskColour(getResources().getColor(R.color.white,getTheme())) .build()