listview中的进度条与sql loader Android

时间:2014-09-13 16:07:07

标签: android android-listview android-progressbar

我使用sqlite的加载器,处理程序线程(带队列的looper)和listview,

我需要在列表视图中下载文件时向用户显示进度条。

我正在考虑下面的内容,但它看起来并不正确,因为我将大量更改数据源,

1 - User clicks "Download file icon" 
2 - Video starts downloading 
3 - Update the sql table with the progress 
4 - Notify the loader to reload the data 
5 - I have the code that keeps the list view at its current position after changing the data source 

我想不出另一种解决方案,还有其他选择吗?

0 个答案:

没有答案