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 是圆圈的那种。没能做成功先搁着在此记录下,有看到会的小伙伴求赐教
更多相关文章
- Android 图片侧滑展示RecyclerView简单实用
- Android 制作.9.png图片之利用Android 9-patch shadow generator
- Android 图片加载Bitmap OOM错误解决办法
- Android 图片加载Bit地图 OOM异常解决方法
- 启动app闪屏问题以及Android自带主题
- android上传图片至服务器
- 仿优酷Android客户端图片左右滑动(自动滑动)
- Android 使用Handler的PostDelayed方法实现图片的轮播