简体   繁体   中英

Create SearchView in android with custom layout

I want to create a view like this : SearchView模拟

It was simple to do the SearchView but how to create a extending layout below action bar or however to provide some search selection to user while searching.

I want to show a layout which will pop up when user clicks the search icon on action bar. The layout will have the additional search criteria to be selected by user.

Any Hints and Example will be helpful.

I would suggest maybe implementing the menuItem.setOnActionExpandListener() -- when it is expanded, you can show/animate your other view below the action bar. See docs for OnActionExpandListener.

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