Android7.0中文文档(API)-- Filter

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/Filter.html

Filter

public abstract class Filter
extends Object

java.lang.Object
   ↳android.widget.Filter


A filter constrains data with a filtering pattern.
Filter使用过滤模板来约束数据。

Filters are usually created by Filterable classes.
Filter通常由Filterable类来创建。

Filtering operations performed by calling filter(CharSequence) or filter(CharSequence, android.widget.Filter.FilterListener) are performed asynchronously. When these methods are called, a filtering request is posted in a request queue and processed later. Any call to one of these methods will cancel any previous non-executed filtering request.
过滤操作通过调用filter(CharSequence)filter(CharSequence, android.widget.Filter.FilterListener)来异步执行。当调用这些方法时,将在请求队列中发布一个过滤请求,并在稍后处理。任何对其中一个方法的调用都将取消先前未执行的过滤请求。

See also:
另请参考:

摘要


嵌套类

interfaceFilter.FilterListener

Listener used to receive a notification upon completion of a filtering operation. 
在完成过滤操作后,用于接收通知的监听器。 

classFilter.FilterResults

Holds the results of a filtering operation. 
保存一个过滤操作的结束。 

Public构造方法

Filter()

Creates a new asynchronous filter.
创建一个新异步Filter。

Public方法

CharSequenceconvertResultToString(Object resultValue)

Converts a value from the filtered set into a CharSequence.
将一个值从过滤后的集转换成CharSequence。

final voidfilter(CharSequence constraint)

Starts an asynchronous filtering operation.
开始一个异步过滤操作。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值