我想停止顯示的進度欄內的盤旋。請告訴我必要的設置應用於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"
/>
爲什麼不創建自己的觀點,而不是使用進度條?通過這種方式,您可以控制自定義替換進度條時想要的內容。 –