我想改变我的custom的进度条.如何改变形象
进度条.请帮我
进度条.请帮我
解决方法
在这里我的答案,我使用我的图像在
android进度条..
<ProgressBar android:layout_height="50dp" android:layout_width="60dp" android:layout_centerInParent="true" android:indeterminate="true" android:indeterminateDrawable="@drawable/my_progress_indeterminate"/> </RelativeLayout>
my_progress_interminate.xml:
<?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/load" android:pivotX="50%" android:pivotY="50%" />
animatio.xml:
<?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <item android:drawable="@drawable/load" android:duration="50" /> <item android:drawable="@drawable/load" android:duration="50" /> <item android:drawable="@drawable/load" android:duration="50" /> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/load" android:pivotX="50%" android:pivotY="50%" android:fromDegrees="330" android:toDegrees="360" android:repeatCount="1" /> </animation-list>