且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android中从SQLite数据库实现ListView分页?

更新时间:2023-02-13 15:10:06

您可以按照以下方法执行此操作.

You can do this for following approach.

                        // create one final list
                        final ArrayList<String> temp = new ArrayList<String>();
                        temp.addAll(previous_data);

                        // call fxn for getting new value
                        // call your database query

                        // add new data into list
                        temp.addAll(new_Data);
                        // intailize static list of adapter showing data
                        // add data into list.
                        ActivityName.MainList = temp;

                         mAdapter.notifyDataSetChanged();

还有你的代码......谢谢

with your code also... thanks