public class

PointAdapter

extends RecyclerView.Adapter<VH extends RecyclerView.ViewHolder>
java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.Adapter<VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder>
     ↳ com.sap.cloud.mobile.fiori.maps.edit.PointAdapter

Summary

Public Constructors
PointAdapter(MapEditor mapEditor)
Public Methods
int getItemCount()
List<AnnotationMarker> getPointList()
void onBindViewHolder(RecyclerView.ViewHolder holder, int position)
RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
void onViewMoved(int oldPosition, int newPosition)
void setPointList(List<AnnotationMarker> pointList)
void syncSelection()
Syncs list selection with view model selected marker.
[Expand]
Inherited Methods
From class androidx.recyclerview.widget.RecyclerView.Adapter
From class java.lang.Object

Public Constructors

public PointAdapter (MapEditor mapEditor)

Public Methods

public int getItemCount ()

public List<AnnotationMarker> getPointList ()

public void onBindViewHolder (RecyclerView.ViewHolder holder, int position)

public RecyclerView.ViewHolder onCreateViewHolder (ViewGroup parent, int viewType)

public void onViewMoved (int oldPosition, int newPosition)

public void setPointList (List<AnnotationMarker> pointList)

public void syncSelection ()

Syncs list selection with view model selected marker. To avoid loop, the synchronization always goes from map view to editor view. Therefore, when user taps a recycler view item, we change the map view marker first, and eventually this method will be called to show the selection in recycler view.