摘要: 方法很简单,首先要在EditText的属性加入android:imeOptions="actionSearch" ,这个属性的作用是启用软键盘时将回车键设置成搜索键,android:singleLine="true"这个也必须写! 不然没有作用哦然后就是监听搜索按钮点击事件了,代码如下:EditTe... 阅读全文
posted @ 2014-05-26 21:54 其实我不懂编程 阅读(427) 评论(0) 推荐(0) 编辑