类图: 通常可以将SearchView和ListView结合,实现数据的搜索和过滤。 1.监听SearchView,SearchView.setOnQueryTextListener(OnQueryTextListener listener); 2.开启ListView的过滤功能,listView. ...
分类:
移动开发 时间:
2016-05-09 12:27:55
阅读次数:
369
以前一直以为edittext中输入一些东西.然后可以检测listview中的内容很高大上.一直没有去尝试.现在项目中遇到了.特此过来尝试一番.结果发现挺简单的,效果还不错,主要就是用到了edittext的 textchange监听 以及listview的过滤.下面直接上截图:
xml:
<LinearLayout xmlns:android="http://sc...
分类:
移动开发 时间:
2015-06-30 09:02:27
阅读次数:
153
这个也是我自己通过网上找资料,自己写的一个Demos。内容简单,直接代码献上;publicclassMainActivityextendsActivity{List<People>people=newArrayList<People>();EditTexteditinput;ListViewlistview;Adapteradapter;@OverrideprotectedvoidonCreate(Bundlesave..
分类:
其他好文 时间:
2014-10-13 20:21:07
阅读次数:
163