我有一个水平的ProgressBar,工作很好。
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyle"
android:layout_width="match_parent"
android:layout_height="15dp"
android:layout_marginBottom="5dp"
android:background="@drawable/progress_radial_background"
android:progressDrawable="@drawable/custom_progress_bar" />
我这样做:
pb.setMax(100);
pb.set(point);
并显示用户级别的状态。当它一路填满时,他们达到了一个新的水平,重新开始。当用户做某些动作来增加点数时,它只会移动/增加。
不过,我想把这个循环代替水平。但是当我这样做,它不会停止旋转的动画(像加载动画)。我可以使循环ProgressBar的方式相同吗?
我的Drawable文件夹中的EDTI:自定义进度条形码:
android:id="@android:id/background"
android:drawable="@drawable/list_press">