[英]Android loading large data in list view
Currently i have 5MB sqlite database in my app i need to show almost all record in activity using into listView. 目前我的应用程序中有5MB sqlite数据库,我需要使用listView显示活动中的几乎所有记录。 In iPhone core data have facility to load 20 records at time and when need they load more data automatically so the performance of the app is more faster then Android app,can any one suggest me the better way to increase performance.
在iPhone核心数据中可以一次加载20条记录,并在需要时自动加载更多数据,因此应用程序的性能比Android应用程序更快,请问有人可以建议我更好的方法来提高性能。 http://www.iphonedevsdk.com/forum/iphone-sdk-development/60239-coredata-nsfetchedresultscontroller-performances.html
http://www.iphonedevsdk.com/forum/iphone-sdk-development/60239-coredata-nsfetchedresultscontroller-performances.html
You can achieve the same behavior with a CursorAdapter. 您可以使用CursorAdapter实现相同的行为。 See http://developer.android.com/reference/android/widget/CursorAdapter.html and http://thinkandroid.wordpress.com/2010/01/09/simplecursoradapters-and-listviews/
参见http://developer.android.com/reference/android/widget/CursorAdapter.html和http://thinkandroid.wordpress.com/2010/01/09/simplecursoradapters-and-listviews/
使用CommonsWare的无限适配器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.