java.lang.Object | ||
↳ | androidx.recyclerview.widget.RecyclerView.Adapter<VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> | |
↳ | com.sap.cloud.mobile.fiori.timeline.TimelineCellProvider |
Timeline cells
.
Is a sub class of RecyclerView.AdapterTimelineView
.
TimelineCellProvider
class is supposed to be used with TimelineView
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected WeakReference<Context> | mContext | ||||||||||
protected boolean | mIsLoading | ||||||||||
protected List<TimelineCellData> | mOrderedCellDataList | ||||||||||
protected WeakReference<Context> | mParentContext | ||||||||||
protected boolean | mShouldDisplayTimestamp | ||||||||||
protected float | mTimelineLineWidth | ||||||||||
protected int | mTodayIndex |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TimelineCellProvider() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TimelineCellView | getHeaderAtPosition(int position) | ||||||||||
int | getHeight() | ||||||||||
boolean | getIsLoading() | ||||||||||
int | getItemCount() | ||||||||||
int |
getItemViewType(int position)
Gets the TimelineCellType of cell available at given position
| ||||||||||
List<TimelineCellData> | getOrderedCellsList() | ||||||||||
TimelineCellView.TimelineCellType |
getTimelineCellType(int position)
Gets the type of cell at index position.
| ||||||||||
int | getTodayIndex() | ||||||||||
boolean | isHeader(int position) | ||||||||||
void |
onBindView(TimelineCellView view, int position, int viewType)
Bind the item available at index position
Override this method if data is to be filled by callback mechanism.
| ||||||||||
final void |
onBindViewHolder(TimelineCellViewHolder cellViewHolder, int position)
Binds the cellViewHolder with a view at index position.
| ||||||||||
final TimelineCellViewHolder |
onCreateViewHolder(ViewGroup parent, int viewType)
Creates a view holder
| ||||||||||
void |
onViewRecycled(TimelineCellViewHolder holder)
Reset the timeline cells once they are recycled.
| ||||||||||
void | setCellList(Context context, List<TimelineCellData> list) | ||||||||||
void | setIsLoading(boolean isLoading) | ||||||||||
void | setTimelineLineWidth(float width) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | setShouldDisplayTimestamp(boolean shouldDisplay) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Gets the TimelineCellType of cell available at given position
Gets the type of cell at index position.
Bind the item available at index position Override this method if data is to be filled by callback mechanism.
view | TimelineCellView |
---|---|
position | int |
viewType | type of view
see getItemViewType(int)
|
Binds the cellViewHolder with a view at index position.
Creates a view holder
Reset the timeline cells once they are recycled.
holder | TimelineCellViewHolder |
---|