简体   繁体   English

如何制作Google Play商店应用,例如搜索操作菜单和搜索对话框设计

[英]How to make Google Play Store App like search action menu and search dialog design

As per new material design update , the Google pay store app action search opens a search dialog thing once tab on search action button. 根据新的材料设计更新,Google付款商店应用操作搜索会在搜索操作按钮上打开一个搜索对话框。 This search interface is different than a default action view provided by android in action bar(which opens in action-bar only.) 此搜索界面不同于android在操作栏中提供的默认操作视图(仅在操作栏中打开)。

So my question is how to implement a new search action dialog like google play store app. 所以我的问题是如何实现像google play store app这样的新搜索操作对话框。 Is there any android official component or I have to create a custom dialog view for this? 是否有任何Android官方组件或我必须为此创建自定义对话框视图? If the second one , then please show how to achieve this type of search view? 如果是第二个,那么请说明如何实现这种类型的搜索视图? 在此输入图像描述

在此输入图像描述

在此输入图像描述

The following link might be helpful. 以下链接可能会有所帮助。 It is a custom implementation of the search. 它是搜索的自定义实现。 Please have a look. 请看一看。

https://github.com/Quinny898/PersistentSearch https://github.com/Quinny898/PersistentSearch

its android default searchview with android:iconifiedByDefault="true" settings. 它的android默认searchviewandroid:iconifiedByDefault="true" iconifiedByDefault android:iconifiedByDefault="true"设置。 the initial response that is shown to you after you click is based on your search history, i am guessing it will be saved, and later as you start typing in the edit text do the api call. 在您点击后显示给您的初始响应是基于您的搜索历史记录,我猜它将被保存,稍后当您开始输入编辑文本时,请执行api调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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