展示页面:
<ImageView
android:id="@+id/img_redpoint"
android:layout_width="17dp"
android:layout_height="17dp"
android:layout_gravity="right"
android:layout_marginTop="-1dp"
android:layout_marginRight="-5px"
android:src="@drawable/animati_redpoint"
/>
animati_redpoint.xml代码:(android:drawable表示使用的动画帧,android:duration表示播放时间间隔 oneshot=false表示循环播放
)
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@