发表声音状态,怎么做到的

图片

参考:
http://104zz.iteye.com/blog/1709840
http://down.51cto.com/data/1887105

实际上,你可以用一个帧动画来做啊!!!

 <?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:oneshot="false">
    <item
        android:drawable="@mipmap/chatfrom_voice_playing_f1"
        android:duration="300" />
    <item
        android:drawable="@mipmap/chatfrom_voice_playing_f2"
        android:duration="300" />
    <item
        android:drawable="@mipmap/chat_voice_r"
        android:duration="300" />
</animation-list>