[mono-android] Filter ListView Android (C#)

alin jojoba2010 at gmail.com
Sat Dec 28 04:50:48 UTC 2013


Hi,
How To use this code in Monodroid(C#)?
OR
How To filter listview that is populate via SimpleCursorAdapter.

<pre><code>
adapter.setFilterQueryProvider(new FilterQueryProvider() {
        public Cursor runQuery(CharSequence constraint) {
            return
getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 
                    new String[] {Phone._ID, Phone.DISPLAY_NAME,
Phone.NUMBER}, 
                    Phone.DISPLAY_NAME + " LIKE '" + constraint + "%'", 
                    null, null);
        }
    });
</code>
</pre>



--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Filter-ListView-Android-C-tp5713650.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list