问题描述
我要显示的用户在谷歌地图的当前位置。每一件事情是工作对我罚款。我只是用标记在地图上显示当前位置。现在,我想使该标记将闪烁如在Android手机原谷歌地图应用程序。我想我必须用动画为了这个目的,但我不知道如何使用它。我在寻找它在互联网上,但我没有得到任何的解决方案。任何人都请帮助我.....
I want to show current location of user on Google map. Every thing is working fine for me . I am just using marker to show current Location on map. Now I want to make that marker to be blink as in original google maps app on android mobile. I think I have to use animation for this purpose,But I dont know how to use it. I am searching it in internet but I am not getting any solutions . Anyone help me please.....
推荐答案
在使用下面的逻辑状态栏闪烁的Android GPS图标。保持2绘区域之一,沉闷的形象,一个明亮的图像。改变他们在特定时间和它看起来就像图像闪烁。
Android GPS icon on the status bar blinks using the below logic. Keep two drawables one with dull image and one with bright image. Change them at certain duration and it will look like the image is blinking.
<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>
这篇关于如何显示图标闪烁在谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!