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 i can show my content under searchView? #30

Open
TheLester opened this issue Jul 3, 2016 · 4 comments
Open

How i can show my content under searchView? #30

TheLester opened this issue Jul 3, 2016 · 4 comments

Comments

@TheLester
Copy link

TheLester commented Jul 3, 2016

I want to show my view, or fragment, whatever, under searchview when i clicked on suggestion item. As i can see Searchview should have height as match_parent and inside layout it has transparent_view with some search_layover_bg background color. Youtube good example of what i want to achieve:

device-2016-07-03-130958

How it can be done with this library?

@Mauker1
Copy link
Owner

Mauker1 commented Jul 8, 2016

As for the 1.1.1 version, I believe it won't be possible, because the MaterialSearchView handles the search history and suggestions automatically.

It might be possible to do what you want if I add an option to "turn it off". Then you could
use the OnQueryTextListener and update your UI accordingly.

@rpgdev
Copy link

rpgdev commented Aug 9, 2016

I was about to post an issue but I guess it's the same as this one. Is there a way to achieve this in general not only when tapping a suggestion? I want to submit a query and leave the searchview open and with the query in the textview just like gmail and youtube do (as shown in the above screenshot). That it's the way it's supposed to go with this kind of searchview.

@Mauker1
Copy link
Owner

Mauker1 commented Mar 20, 2017

I believe that as of version 1.2.2 it's possible to achieve that behavior by leaving the SearchView open and by getting the current query. Could you test it? @rpgdev

@rpgdev
Copy link

rpgdev commented Mar 20, 2017

@Mauker1 sorry I can't right now. I did away with most of the code relating to 'material' searchviews, I think I tried most of the ones out there at the time. I'll probably try to implement it on one of my apps again in the near future, when I do I'll make sure to come back to this.

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

No branches or pull requests

3 participants