U
- the instance type of MarkerViewSymbolLayer
instead.@Deprecated
public abstract static class DingiMap.MarkerViewAdapter<U extends MarkerView>
extends java.lang.Object
Constructor and Description |
---|
MarkerViewAdapter(android.content.Context context,
java.lang.Class<U> persistentClass)
Deprecated.
Create an instance of MarkerViewAdapter.
|
Modifier and Type | Method and Description |
---|---|
android.content.Context |
getContext()
Deprecated.
Returns the context associated to the hosting MapView.
|
java.lang.Class<U> |
getMarkerClass()
Deprecated.
Returns the generic type of the used MarkerView.
|
abstract android.view.View |
getView(U marker,
android.view.View convertView,
android.view.ViewGroup parent)
Deprecated.
Called when an MarkerView will be added to the MapView.
|
android.support.v4.util.Pools.SimplePool<android.view.View> |
getViewReusePool()
Deprecated.
Returns the pool used to store reusable Views.
|
void |
onDeselect(U marker,
android.view.View convertView)
Deprecated.
Called when a MarkerView is deselected from the MapView.
|
boolean |
onSelect(U marker,
android.view.View convertView,
boolean reselectionFromRecycling)
Deprecated.
Called when a MarkerView is selected from the MapView.
|
boolean |
prepareViewForReuse(MarkerView marker,
android.view.View convertView)
Deprecated.
Called when an MarkerView is removed from the MapView or the View object is going to be reused.
|
void |
releaseView(android.view.View view)
Deprecated.
Release a View to the ViewPool.
|
public MarkerViewAdapter(android.content.Context context, java.lang.Class<U> persistentClass)
context
- the context associated to a MapView@Nullable public abstract android.view.View getView(@NonNull U marker, @Nullable android.view.View convertView, @NonNull android.view.ViewGroup parent)
marker
- the model representing the MarkerViewconvertView
- the reusable viewparent
- the parent ViewGroup of the convertviewpublic boolean prepareViewForReuse(@NonNull MarkerView marker, @NonNull android.view.View convertView)
This method should be used to reset an animated view back to it's original state for view reuse.
Returning true indicates you want to the view reuse to be handled automatically.
Returning false indicates you want to perform an animation and you are required calling
releaseView(View)
yourself.
marker
- the model representing the MarkerViewconvertView
- the reusable viewpublic boolean onSelect(@NonNull U marker, @NonNull android.view.View convertView, boolean reselectionFromRecycling)
Returning true from this method indicates you want to move the MarkerView to the selected state. Returning false indicates you want to animate the View first an manually select the MarkerView when appropriate.
marker
- the model representing the MarkerViewconvertView
- the reusable viewreselectionFromRecycling
- indicates if the onSelect callback is the initial selection
callback or that selection occurs due to recreation of selected markerpublic void onDeselect(@NonNull U marker, @NonNull android.view.View convertView)
marker
- the model representing the MarkerViewconvertView
- the reusable viewpublic final java.lang.Class<U> getMarkerClass()
@NonNull public final android.support.v4.util.Pools.SimplePool<android.view.View> getViewReusePool()
public final android.content.Context getContext()
public final void releaseView(android.view.View view)
view
- the view to be released