话说实习也就快一个月了,虽然没干什么活,但是这几天总算是有一些可以写的东西。
代码中应该还存在很多问题要修改,大神们请赐教,不胜感激。
开始正题。
关于Android实现任意绕圆或椭圆旋转动画,我称之为“卫星动画”,所以动画类也被称为SatelliteAnimtor。详细代码后附下载,这里就不贴出来了。
这里讲一讲这个类的使用方法。
一、最简单的使用方法
先看效果:
首先是xml文件:
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.light.animation.SatelliteAnimation.SatelliteActivity">
android:id="@+id/hello_tv"
android:layout_width="wrap_content"
android:layou