I am using showcaseview
library to show user guide.In this i have to pass View
object to highlight particular view . I am facing problem to find View object of option menu icon (Three dots on top Right Corner).
I also tried to this but nothing helpfull.
I also tried as View view=menu.getItem(0).getActionView();
but could not help and always give me exceptionCrash Handler uncaughtException: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object reference
Although i am able to find View object of MenuItem like this View menuItemView1 = findViewById(R.id.menu_edit);
Please let me know anybody have suggestion