完整内容,请查看: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:
另请参考:
摘要
嵌套类 | |
---|---|
interface | Filter.FilterListener Listener used to receive a notification upon completion of a filtering operation. |
class | Filter.FilterResults Holds the results of a filtering operation. |
Public构造方法 | |
---|---|
Filter() Creates a new asynchronous filter. |
Public方法 | |
---|---|
CharSequence | convertResultToString(Object resultValue) Converts a value from the filtered set into a CharSequence. |
final void | filter(CharSequence constraint) Starts an asynchronous filtering operation. |