我想停止显示的进度栏内的盘旋。请告诉我必要的设置应用于xml文件或代码中可用于停止此动画的任何方法。 另外我在我的用户界面中创建了一个进度条。 The Progress bar is black in color and the animation represents the progress that I would like to stop如何在Android中停止进度条动画?
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:background="@android:color/background_light"
android:minWidth="300dp"
android:maxWidth="300dp"
/>
为什么不创建自己的观点,而不是使用进度条?通过这种方式,您可以控制自定义替换进度条时想要的内容。 –