Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to target the menuItem of Navigation Bar #176

Open
developerShashwat opened this issue Jun 13, 2019 · 1 comment
Open

How to target the menuItem of Navigation Bar #176

developerShashwat opened this issue Jun 13, 2019 · 1 comment

Comments

@developerShashwat
Copy link

developerShashwat commented Jun 13, 2019

I have implemented all the classes of this library in my project and its working fine for all the views. But still, I am not able to target the menu item of the Navigation Drawer. Can anyone help me on this as it is too much hampering my task?

some of my general implementations are

In my Menu XML
<item android:id="@+id/solved_questions" android:checked="false" android:icon="@drawable/ic_description_black_24dp" android:title="@string/menu_solved_questions" app:showAsAction="ifRoom" app:actionViewClass="android.widget.TextView"/>

In my JAVA class
viewsolvedQuestion = (TextView) navigationView.getMenu().findItem(R.id.solved_questions).getActionView(); showcaseView("Tap this to open solved question", "515", viewsolvedQuestion, LessonListActivity.this, new RectangleShape(900,200), null);

And my Method is
public static void showcaseView(String text, String id, View view, Activity activity, Shape shape, IShowcaseListener listener) { MaterialShowcaseView.Builder builder = new MaterialShowcaseView.Builder(activity) .setTarget(view) .setTitleText("") .setTargetTouchable(false) .setDismissOnTargetTouch(true) .setShape(shape) .setDismissText("Got It") .setContentText(text) .renderOverNavigationBar() .singleUse(id) .setDelay(70); if (null != listener) builder.setListener(listener); builder.show(); }

@aristotle-kdj
Copy link

I too have this same problem, does anyone have solution for this??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants