Draw an overlay on MapsApp-like

I am stuck in a task that seems to me not so trivial as before. I need to make an application that uses MapActivity and draw some overlays on it ... (what is done), now I have a problem with the onTap () method, I need to make it look like in the original Android Application for Android, like http://i.stack.imgur.com/EkZEr.png

I am new to android and there seems to be no tutorial that could explain how to write classes for such overlays ...

+5
source share
3 answers

I was looking for a good example onTap Balloons, and so far the best implementation I've found is this: https://github.com/galex/android-mapviewballoons

+3
source
in onTap()

LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout ll = (LinearLayout)inflater.inflate(R.layout.mylocation_balloon, null);
LayoutParams lp = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT,mapOverlays.get(index).getPoint(), 0, -70, LayoutParams.MODE_MAP | LayoutParams.CENTER);
+2
source

All Articles