<?xml version="1.0" encoding="utf-8"?> |
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" |
android:drawable="@drawable/image_for_rotation" |
android:pivotX="50%" |
android:pivotY="50%" /> |
@drawable/image_for_rotation 就是那张做好的图片
- 给ProgressBar widget设定android:indeterminateDrawable
本文介绍如何使用XML定义一个旋转动画,并将其应用于Android的ProgressBar上。通过指定图片资源及旋转轴的位置,实现平滑的旋转效果。
5259

被折叠的 条评论
为什么被折叠?



