arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 668 forks source link

Is it possible to get MenuView? #73

Closed christarazi closed 8 years ago

christarazi commented 8 years ago

I want to be able to access the View responsible for the menu. In the code, it's called mMenuView. The reason I want to access it is because I'm using MaterialShowcaseView, and I want to be able to 'showcase' the menu buttons inside the FloatingSearchView.

To use MaterialShowcaseView, you do something like this:

sequence.addSequenceItem(buildShowcaseView(aView, new RectangleShape(0, 0),
                "Enter any zip code, city, or address here."
        ));

where aView is the View you want to 'showcase'.

The above code will do something like this: http://i.imgur.com/XJtwCE3l.png image

I'd like 'showcase' the individual buttons.

When I try to access the menu items directly via mFloatingSearchView.findViewById(), it returns a null pointer.

So I'm assuming that I need the actual MenuView to be able to do a findViewById.

Does anyone know if this is possible?

arimorty commented 8 years ago

Hi @christarazi ,

The MenuItems are currently not exposed, so it would be difficult or impossible to get a reference to them.