ProgressBar
ProgressBar的常用属性和方法
- style:设置进度条的样式,可取值有如下:?android:attr/progressBarStyle、?andgroid:attr/progressBarStyleSmall、?android:attr/progressBarStyleSmallInverse、?android:attr/progressBarStyleSmallTitle、?android:attr/progressBarStyleLarge、?android:attr/progressBarStyleLargeInverse、?android:attr/progressBarStyleHorizontal、?android:attr/progressBarStyleInverse;
- progress:初始时的进度;
- max:最大进度;
secondaryProgress:二级进度;
setProgress(int progress,boolean animate):设置进度;
incrementProgressBy(int diff):设置进度条增减;
incrementSecondaryProgressBy(int diff):设置二级进度条增减;