deano2390 / MaterialShowcaseView

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

Highlight the actionbar item #54

Open amirfazwan opened 8 years ago

amirfazwan commented 8 years ago

Hi there, How to get the view of the item in the action bar and set it for showcaseview? The menu item is only one and has been set to showAsAction="always". The situation is like in this image: https://github.com/amlcurran/ShowcaseView/blob/master/example2@2x.png

Karthi-R commented 8 years ago

There are two ways to get the referance of target view,

  1. Iterate the toolbar views, through toolbar.getChildAt()
  2. Set custom view in toolbar and then use the referance of target view
renatoargoncalves commented 7 years ago

What about a menuitem ?