---
title: "Android图片旋转实例"
author: "zwnJava"
date: "2013-07-23T14:40:30Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2013-07-23T14:40:30Z"
id: 1912171
url: "https://zwnjava.iteye.com/blog/1912171"
---

`<?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