pagination in listview

前端 未结 4 574
深忆病人
深忆病人 2020-12-20 06:57

Thanks in advance.

I am developing a Car Review Application, where user can log in and displayed all the review from the Database. All the the data is being stored i

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 07:42

    You can use the concept of Asynchronous tasks along with SimpleCursorAdapters.

    "AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers."

    Here's what you can do:

    1) Retrieve only 1st 10/15 items in the 1st query. 2) Fire another query as a background task, while user is checking out first 10/15 items.

    This will certainly make the User experience faster

提交回复
热议问题