Android控件_ProgressBar使用
2015-12-21 18:44
274 查看
一、ProgressBar进度条简单认识:
进度条用颜色填充来表明进度完成的程度
通常用于向用户显示某个耗时操作完成的百分比
让用户感觉程序失去了相应,更好的用户体验。
二、Android支持的风格的进度条
例如:style=“@android:style/Widget.ProgressBar”
@android:style/Widget.ProgressBar
@android:style/Widget.ProgressBar.Horizontal 水平进度条
@android:style/Widget.ProgressBar.Inverse 普通大小进度条
@android:style/Widget.ProgressBar.Large 大进度条
@android:style/Widget.ProgressBar.Large.Inverse 大进度条(反转)
@android:style/Widget.ProgressBar.Small 小进度条
@android:style/Widget.ProgressBar.Small.Inverse 小进度条反转
例如:
style=”?android:attr/progressBarStyleSmall”
style=”?android:attr/progressBarStyleSmallInverse”
style=”?android:attr/progressBarStyleSmallTitle” 标题栏圆圈
style=”?android:attr/progressBarStyleLargeInverse”
style=”?android:attr/progressBarStyle”
style=”?android:attr/progressBarStyleInverse”
style=”?android:attr/progressBarStyleLarge”
style=”?android:attr/progressBarStyleLargeInverse”
style=”?android:attr/progressBarStyleHorizontal”
常用属性:
android:max 设置该进度条的最大值
android:progress 设置该进度条的已完成进度值
android:progressDrawable 设置该进度条的轨道的绘制形式
android:progressBarStyle 默认进度条样式
android:progressbarStyleHorizontal 水平进度条样式
android:progressBarStyleLarge 大进度条样式
android:progressbarStyleSmall 小进度条样式
进度条用颜色填充来表明进度完成的程度
通常用于向用户显示某个耗时操作完成的百分比
让用户感觉程序失去了相应,更好的用户体验。
二、Android支持的风格的进度条
例如:style=“@android:style/Widget.ProgressBar”
@android:style/Widget.ProgressBar
@android:style/Widget.ProgressBar.Horizontal 水平进度条
@android:style/Widget.ProgressBar.Inverse 普通大小进度条
@android:style/Widget.ProgressBar.Large 大进度条
@android:style/Widget.ProgressBar.Large.Inverse 大进度条(反转)
@android:style/Widget.ProgressBar.Small 小进度条
@android:style/Widget.ProgressBar.Small.Inverse 小进度条反转
例如:
style=”?android:attr/progressBarStyleSmall”
style=”?android:attr/progressBarStyleSmallInverse”
style=”?android:attr/progressBarStyleSmallTitle” 标题栏圆圈
style=”?android:attr/progressBarStyleLargeInverse”
style=”?android:attr/progressBarStyle”
style=”?android:attr/progressBarStyleInverse”
style=”?android:attr/progressBarStyleLarge”
style=”?android:attr/progressBarStyleLargeInverse”
style=”?android:attr/progressBarStyleHorizontal”
常用属性:
android:max 设置该进度条的最大值
android:progress 设置该进度条的已完成进度值
android:progressDrawable 设置该进度条的轨道的绘制形式
android:progressBarStyle 默认进度条样式
android:progressbarStyleHorizontal 水平进度条样式
android:progressBarStyleLarge 大进度条样式
android:progressbarStyleSmall 小进度条样式
相关文章推荐
- Android studio 点击按钮跳转到新的Activity
- 【Android实战】Android沉浸式状态栏实现(下)
- Kindle for Android打开本地mobi文件
- Android Studio 使用中遇到的问题
- Android字符串进阶之三:字体属性及测量(FontMetrics)
- Android ViewPager嵌套ViewPager滑动冲突的解决方法
- 在eclipse中查看Android源代码
- Android画个颜色渐变的圆环玩玩
- 如何优化Android studio的启动速度
- Android Toast显示不出来
- Android版本和API Level
- sharedUserId 区别 process
- [Android][Rendering Problems] Failed to find style 'editTextStyle' in current theme 解决方法
- android 解决fragment+viewpager+fragment滑动卡顿的问题
- Android Studio自定义gradle下载路径
- Android Activity通过Intent传递数据
- Android 热更新实现原理及代码分析
- Android版添加phonegap--百度云插件教程
- Android中通知的提示音、震动和LED灯效果小例子
- Android调用系统相机功能