Android Chinese API (118) -- FilterQueryProvider

Source: Internet
Author: User

Preface

This chapter is about android. widget. filterQueryProvider, version: Android 3.0 r1, translated from "xiaoQLu", with sample code, welcome to its blog: "http://www.cnblogs.com/xiaoQLu", thanks again "xiaoQLu "! I look forward to your participation in Android API translation, contact me over140@gmail.com.

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog Garden: http://www.cnblogs.com/

Android Chinese translation group: http://goo.gl/6vJQl

 

Body

I. Structure

Public interface FilterQueryProvider

Android. widget. FilterQueryProvider

 

Ii. Overview

This class can be used by CursorAdapter and CursorTreeAdapter to define how to filter the adapter content.

See

    runQuery(CharSequence)

 

Iii. Public Methods

Public abstract CursorRunQuery(CharSequence constraint)

Execute the filter query with the specified constraints. This query requires that the results be appended to the adapter through the filter. Convention: When the constraint condition is null or null, the original results before filtering must be returned. (Note: You can use Like and other statements to execute SQL queries in this method)

Parameters

Query constraints that must be filtered by constraint

Return Value

Cursor representing the new query result)

 

Iv. Supplement

Article Selection

The CursorAdapter and CursorFilter mechanisms of Android

How CursorAdapter implements keyword Filtering

 

  

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.