CursorAdapter的ViewBinder生命周期?
有人可以帮助我从方法方面理解 SimpleCursorAdapter.ViewBinder
生命周期:setViewValue
、bindView
何时调用它们?实例是否被重复使用?有什么来源可以理解这一切吗?
我基本上有一个 ScrollView
,它使用 setViewValue
来填充项目,但即使一次又一次调用 setViewValue
,它也不会刷新视图值。
Can someone help me understand SimpleCursorAdapter.ViewBinder
lifecycle in terms of methods: setViewValue
, bindView
when are they called? Are instances re-used? Any source to understand all of it?
I basically have a ScrollView
that that uses setViewValue
to populate items but it doesn't refresh the view value even when setViewValue
is called again and again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先调用bindView,然后调用setViewValue。
bindView is called first and later setViewValue.