android process bar 几种style

process bar 圆形style记录


1、

style="?android:attr/progressBarStyleSmall"

//根据主题变颜色


2、

holo 主题下的形状

style="@android:style/Widget.Holo.ProgressBar.Small"  对应:@android:drawable/progress_small_holo 

打开sdk\platforms\android-19\data\res\drawable 可以查看对应的布局调用的图片


3、窗口

<ProgressBar style="@android:style/Widget.ProgressBar.Inverse"/>

<ProgressBar style="@android:style/Widget.ProgressBar.Large.Inverse"/>

<ProgressBar style="@android:style/Widget.ProgressBar.Small.Inverse"/>

4、自己修改process bar遇到了问题,在copy系统的stype后有两个参数不能用

<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/spinner_white_16"
android:pivotX="50%"
android:pivotY="50%"
android:framesCount="12"
android:frameDuration="100" />

其中

android:framesCount

android:frameDuration

参数不能用

改android:drawable 图片感觉不出效果。

参考

http://stackoverflow.com/questions/2638161/how-to-change-android-indeterminate-progressbar-color

http://stackoverflow.com/questions/4359390/android-animate-rotate

http://stackoverflow.com/questions/20412362/androids-progress-medium-xml-error

查了下材料也没能明白怎么自己弄个自己图片的process bar  是圆圈的那种。没能做成功先搁着在此记录下,有看到会的小伙伴求赐教




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值