DownloadProgressViewDemo 下载ProgressView演示
Android自定义进度视图,展示下载进度视图的用法。
代码示例:
@Override
tprotected void onCreate(Bundle savedInstanceState) {
ttsuper.onCreate(savedInstanceState);
ttsetContentView(R.layout.main);
ttdownloadProgressView1 = (DownloadProgressView) findViewById(R.id.wpv_download_1);
ttdownloadProgressView1.setMax(100);
ttdownloadProgressView1.setMaxFileLenght(20);
ttdownloadProgressView2 = (DownloadProgressView) find
该代码段展示了如何创建并设置两个DownloadProgressView组件的最大值和最大文件长度。
下载地址
用户评论