下载完成后如何更新列表视图中的进度栏​​并启用列表项?

发布于 2024-12-18 05:17:07 字数 396 浏览 2 评论 0原文

这个问题说明了一切。我需要禁用列表视图中的项目,直到应用内购买交易结束。交易结束后,下载活动将开始并下载队列中的项目(视频文件)内容。

那么,我该如何

  1. 禁用列表视图中的项目,直到 Android Market isPurchased 结果正常。
  2. 在列表视图中显示进度栏(对于每个列表项)并随着下载进度进行更新。
  3. 一旦列表项的下载完成,该项的 onClick 将导致 videoPlayer 活动。
  4. 下载完成后,每个列表项都会被启用。

请帮帮我!

更多信息: 这是一个基于蜂窝的平板电脑应用程序。布局由片段组成,左侧有类别,右侧有相关视频标题!这些是要下载的视频!

The question says it all. I need to disable the items in list view until an in-app purchase transaction gets over. Once the transaction is over, the download activity would start and download the contents of items (Video files) in a queue.

So, how do I

  1. Disable the items in the list view until the Android Market isPurchased result is OK.
  2. Showup Progressbar in listview (for each list item) and update it as the download progresses.
  3. Once a list item's download completes, the onClick of the item would lead to videoPlayer activity.
  4. As download completes, each list item would get enabled.

Please help me out!

Some more info:
This is a honeycomb based, tablet app. The layout is made of fragments and has category on the left side, the related video titles on the right side! These are the videos that are to be downloaded!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文