简体   繁体   中英

Android Actionbar SearchView

I want to implement Actionbar SearchView same as QuizUp (attached pictures). My code structure is, one main activity with multiple fragments. Actionbar SearchView is common feature and not related to the any fragment and result will be fetched from remote service.

Need help with some sample codes. Pls check attached images to get clear idea about my requirement.

Thanks

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

第1步

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

第2步

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

第三步

I think it is kinda impossible with simple SearchView.

You can do it with transparent activity.

For example, you have menuItem with search button, when user click it, application open new activity with transparent background and searchView

How to create transparent activity

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM