我已经实现了一个自定义进度条,并且在从 URL 获取数据时显示它,它工作正常,因为进度条正在旋转,但我的问题是我目前无法找到降低其旋转速度的适当方法它旋转得非常快。
请帮助我提出您的建议并回复。
进度条的xml布局:-
<ProgressBar
android:id="@+id/showProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminateDrawable="@drawable/my_progress_indeterminate" />
这里还有“my_progress_indeterminate”,用于旋转我的自定义进度条:-
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/image_loading"
android:pivotX="50%"
android:pivotY="50%" />
如果可能的话,请分享一些例子来降低旋转速度。
任何建议将不胜感激。