我想知道如何像在Google Play中那样获取此SearchView图标(三条水平线变成一个箭头(,它是默认的还是自定义的?
我找到了一些开源控件,如浮动搜索视图 (https://github.com/arimorty/floatingsearchview(,但我还没有找到那个图标。
三条水平线变成一个箭头
https://android.googlesource.com/platform/packages/apps/Dialer/
看到这个包有类SearchEditTextLayout
。
这个类是由谷歌编写的。
顺便说一句,如果您不想潜入此代码,您可以使用
- https://github.com/MiguelCatalan/MaterialSearchView
- https://github.com/KieronQuinn/PersistentSearch