Back to project page geocamTalkForAndroid.
The source code is released under:
NASA OPEN SOURCE AGREEMENT VERSION 1.3 THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE, REPRODUCTION, DISTRIBUTION, MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORI...
If you think the Android project geocamTalkForAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package gov.nasa.arc.geocam.talk.service; //from w w w . j a v a 2 s .c o m import java.util.ArrayList; import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.OverlayItem; /** * The Class TalkMapOverlay which creates a marker on the * Talk map where the Talk Message was sent from.. */ public class TalkMapOverlay extends ItemizedOverlay<OverlayItem> { /** The m overlays. */ private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>(); /** * Instantiates a new talk map overlay. * * @param defaultMarker the default marker */ public TalkMapOverlay(Drawable defaultMarker) { super(boundCenterBottom(defaultMarker)); } /** * Adds the overlay. * * @param overlay the overlay */ public void addOverlay(OverlayItem overlay) { mOverlays.add(overlay); populate(); } /* (non-Javadoc) * @see com.google.android.maps.ItemizedOverlay#createItem(int) */ @Override protected OverlayItem createItem(int i) { return mOverlays.get(i); } /* (non-Javadoc) * @see com.google.android.maps.ItemizedOverlay#size() */ @Override public int size() { return mOverlays.size(); } }