【问题标题】:Fragment onResume not getting called after the expandable listview adapter notifyDataSetChanged is called调用可扩展列表视图适配器 notifyDataSetChanged 后,片段 onResume 未被调用
【发布时间】:2016-10-18 16:49:18
【问题描述】:

我有一个由可扩展列表视图组成的片段,当我更新我的可扩展列表视图片段时 onResume 没有得到。有人可以解释一下为什么 onResume 在调用适配器 notifyDataSetChanged 之后没有被调用,但是在我不更新可扩展列表视图之前它仍然被调用。

【问题讨论】:

  • 请贴一些代码

标签: android android-fragments


【解决方案1】:

片段中的 onResume 没有被调用,因为您使用的片段可能在另一个片段中。尝试检查父片段的 onResume 并检查是否被击中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-08
    • 2014-09-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多