【问题标题】:android Fragment - in which method i need to retrieve data from sqlite and populate to recylerviewandroid Fragment - 我需要从 sqlite 检索数据并填充到 recylerview 的方法
【发布时间】:2017-12-21 19:55:09
【问题描述】:

我已从服务器下载数据并插入数据库 我在 sqlite 中有 200 行,加载需要时间 它击中了碎片 我需要以哪种方法检索数据并填充到 recylerview

【问题讨论】:

  • 把你的代码放在这里
  • 索引您的搜索和 JOIN 列。

标签: android performance sqlite android-fragments android-sqlite


【解决方案1】:

在 onActivityCreated() 方法中,创建一个数组适配器并填充列表视图。 确保您在后台线程中从服务器下载数据,使用 asynctask。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-10-22
    • 2014-07-31
    • 1970-01-01
    • 2015-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多