Animated Icon for ActionItem
You’re on the right track. Here is how the GitHub Gaug.es app will be implementing it. First they define an animation XML: <rotate xmlns:android=”http://schemas.android.com/apk/res/android” android:fromDegrees=”0″ android:toDegrees=”360″ android:pivotX=”50%” android:pivotY=”50%” android:duration=”1000″ android:interpolator=”@android:anim/linear_interpolator” /> Now define a layout for the action view: <ImageView xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:src=”https://stackoverflow.com/questions/9731602/@drawable/ic_action_refresh” style=”@style/Widget.Sherlock.ActionButton” /> All we need to do is enable this view … Read more