runQueryOnBackgroundThread 的使用

    技术2022-05-19  17

    对于apidemo列子代码中自定义CursorAdapter的使用总结:

     

    对于AutoCompleteTextView如果设置游标适配器,那么每次当用户输入字符时就会执行一次查询,如果没实现runQueryOnBackgroundThread方法,那么自动选择出所有符合条件的cursor结果,所以为了实现自己的特殊查询则需要实现runQueryOnBackgroundThread 方法

     

    对于listview或者其它需要用到游标适配器时注意runQueryOnBackgroundThread 方法的使用条件


    最新回复(0)