ProgressBar
来源:互联网 发布:日本黑帮电影 知乎 编辑:程序博客网 时间:2024/05/16 05:59
ProgressBar first;
ProgressBar second;
first.setVisibility(View.VISIBLE);
//参数也可以直接写0,如果写常量,好处就是一看到就知道是什么意思
second.setVisibility(View.VISIBLE);
first.setProgress(i);
//设置进度位置,默认满值为100.xml文件可以设置max参数
first.setSecondaryProgress(i+10);
//设置第二进度条(即浅色那条)
//两条进度条的意义,比如下载任务中,浅色代表当前下载进度,深色代表总进度
second.setProgress(i);
xml:
<ProgressBar
android:id="@+id/first"
style="?android:attr/progressBarStyleHorizontal" //水平条的风格
android:layout_width="200dp"
android:layout_height="wrap_content"
android:visibility="gone"
android:max="200"/>
<ProgressBar
android:id="@+id/second"
style="?android:attr/progressBarStyle" //默认风格,即圈圈
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"/>
ProgressBar second;
first.setVisibility(View.VISIBLE);
//参数也可以直接写0,如果写常量,好处就是一看到就知道是什么意思
second.setVisibility(View.VISIBLE);
first.setProgress(i);
//设置进度位置,默认满值为100.xml文件可以设置max参数
first.setSecondaryProgress(i+10);
//设置第二进度条(即浅色那条)
//两条进度条的意义,比如下载任务中,浅色代表当前下载进度,深色代表总进度
second.setProgress(i);
xml:
<ProgressBar
android:id="@+id/first"
style="?android:attr/progressBarStyleHorizontal" //水平条的风格
android:layout_width="200dp"
android:layout_height="wrap_content"
android:visibility="gone"
android:max="200"/>
<ProgressBar
android:id="@+id/second"
style="?android:attr/progressBarStyle" //默认风格,即圈圈
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"/>
- ProgressBar
- progressbar
- ProgressBar
- progressbar
- Progressbar
- progressbar
- progressbar
- ProgressBar
- ProgressBar
- progressBar
- ProgressBar
- ProgressBar
- progressbar
- ProgressBar
- ProgressBar
- ProgressBar
- ProgressBar
- ProgressBar
- firefox调试记录6——Firefox主窗口创建过程研究
- Android多媒体扫描过程
- jQuery(3-5)删除节点
- Thinking in Shader(5)
- 【Mod】简便方法转移dalvik-cache,释放data空间!【已提供toSystem及卸载方法】
- ProgressBar
- 火狐4浏览器动态下载统计背后的SQL技术
- Extjs如何动态加载Extjs脚本
- firefox调试记录7——打开与修改文件
- 小米手机专业拆解:物料成本不超过900元人民币
- 不得不说的正则表达式1
- 关于Oracle一个汉字代表几个字节的问题
- 第一次写的java程序——万年历表
- ZeroMQ get start