简体   繁体   中英

linking a large sqlite database with a listview android

I have my own sqlite database that i have successfully been able to load into my project and it correctly loads onto the device on first execution. Now the problem i'm facing is to display all 4000 rows in the database onto a simple listview. Can someone please tell me how i can use the database present to read entries and link it with the listview.

也许尝试部分加载的概念,在最大行滚动之后,再从数据库加载行的其他间隔。

Your question was a bit vague, but I think you're looking for a ListView and a CuursorAdapter. That is, assuming your data has been converted to a SQLite DB, of course.

See this page of the dev guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM