public abstract class MarkerImage extends Object implements Parcelable
Marker
on the map. Can be reused with different
markers.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
MarkerImage() |
Modifier and Type | Method and Description |
---|---|
static MarkerImage |
create(Bitmap bitmap)
Create a new
MarkerImage with the given bitmap |
static MarkerImage |
create(Context context,
Drawable drawable)
Create a new
MarkerImage with the given drawable |
static MarkerImage |
create(Context context,
int drawableId)
Create a new
MarkerImage with the given drawable |
static MarkerImage |
create(Context context,
int drawableId,
Resources.Theme theme)
Create a new
MarkerImage with the given drawable |
abstract Bitmap |
getBitmap()
The ABGR bitmap to show on the map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract Bitmap getBitmap()
public static MarkerImage create(Bitmap bitmap)
MarkerImage
with the given bitmapbitmap
- the bitmap to show as a marker on the mappublic static MarkerImage create(Context context, Drawable drawable)
MarkerImage
with the given drawablecontext
- Android contextdrawable
- the drawable to show as a marker on the mappublic static MarkerImage create(Context context, int drawableId)
MarkerImage
with the given drawablecontext
- Android contextdrawableId
- the drawable ID to show as a marker on the mappublic static MarkerImage create(Context context, int drawableId, Resources.Theme theme)
MarkerImage
with the given drawablecontext
- Android contextdrawableId
- the drawable ID to show as a marker on the maptheme
- the theme of the drawable