I have a ListView using a custom ArrayList adapter - what's the best way to implement filtering ? Anyone have a example code to study?

前端 未结 4 2086
一个人的身影
一个人的身影 2020-12-10 00:46

Subject says it all. I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advic

4条回答
  •  青春惊慌失措
    2020-12-10 01:00

    This video comes from the latest Google I/O (2010), it's called "The world of ListView".

    http://code.google.com/intl/it-IT/events/io/2010/sessions/world-of-listview-android.html

    at 34:25 it explains how to implement a text filter

    here, near line 437, an example of use:

    https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java

    enjoy :)

提交回复
热议问题