悬停带有菜单的搜索视图

Hovering searchView with menu

我在我的应用程序的应用程序栏中实现了一个搜索视图,所以一切都很紧凑。刚刚在 GMail 中检查了我的邮件,发现它们似乎没有使用应用程序栏。 我在谷歌上搜索了一下,但找不到他们使用的是什么。是修改过的应用栏设计还是修改了菜单的悬停搜索视图?有什么想法吗?

在这里找到答案:Android Google Search Bar with Drawer

对于任何想要测试代码的人,我什至添加了所需的 xml 文件(但如果有的话,您也可以使用自己的文件): ic_menu.xml

<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp"
    android:viewportHeight="330" android:viewportWidth="330" android:width="24dp">
    <path android:fillColor="#77000000"
        android:pathData="M135,90H15c-8.284,0 -15,6.716 -15,15s6.716,15 15,15h120c8.284,0 15,-6.716 15,-15S143.284,90 135,90z"/>
    <path android:fillColor="#77000000"
        android:pathData="M135,150H15c-8.284,0 -15,6.716 -15,15c0,8.284 6.716,15 15,15h120c8.284,0 15,-6.716 15,-15C150,156.716 143.284,150 135,150z"/>
    <path android:fillColor="#77000000"
        android:pathData="M135,210H15c-8.284,0 -15,6.716 -15,15c0,8.284 6.716,15 15,15h120c8.284,0 15,-6.716 15,-15C150,216.716 143.284,210 135,210z"/>
</vector>

shape_round.xml

<shape xmlns:android="http://schemas.android.com/apk/res/android">

    <corners android:radius="15dip" />

    <solid android:color="@android:color/white" />

</shape>