如何在谷歌地图上显示图标闪烁

Pra*_*u M 5 animation android google-maps

我想在Google地图上显示用户的当前位置.每件事对我来说都很好.我只是用标记在地图上显示当前位置.现在我想让那个标记像在Android手机上的原始谷歌地图应用程序一样闪烁.我想我必须为此目的使用动画,但我不知道如何使用它.我在互联网上搜索它,但我没有得到任何解决方案.有人帮我请.....

Vin*_*oth 6

状态栏上的 Android GPS 图标使用以下逻辑闪烁。保留两个可绘制的图像,一个具有暗淡的图像,一个具有明亮的图像。在一定的持续时间内更改它们,图像看起来会闪烁。

<animation-list
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:oneshot="false">
    <item android:drawable="@drawable/dull" android:duration="10000" />
    <item android:drawable="@drawable/bright" android:duration="10000" />
</animation-list>
Run Code Online (Sandbox Code Playgroud)