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  是圆圈的那种。没能做成功先搁着在此记录下,有看到会的小伙伴求赐教




 

posted @ 2014-04-22 14:43  也行  阅读(785)  评论(0编辑  收藏  举报