Issue
How would one fade in and out a GoogleMap marker?
This is how I add a marker to the Map:
marker = map.addMarker(new MarkerOptions()
.position(point)
.title(title)
.snippet(text)
.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker))
);
Solution
With Google Play services 4.0+ you can use Marker.setAlpha
in conjunction with Handler
that posts some Runnable
every few milliseconds.
The code will be similar to my answer here Drop marker slowly from top of screen to location on android map V2. Just setAlpha
instead of setPosition
and you are on your way home.
Answered By - MaciejGórski
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.