代码改变世界

随笔档案-2011年6月27日

android内置搜索对话框(浮动搜索)例子

2011-06-27 23:55 by htc开发, 187 阅读, 收藏,
摘要: 差点忘了,先上图看效果吧:步骤:(1)配置search bar的相关信息,新建一个位于res/xml下的一个searchable.xml的配置文件<?xml version="1.0" encoding="utf-8"?><searchable xmlns:android="http://schemas.android.com/apk/res/android" android:hint="@string/searchHint" android:searchMode="showSearch 阅读全文