public class

TimelinePreviewCellView

extends TimelineMarkerCellView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
         ↳ com.sap.cloud.mobile.fiori.timelineview.views.TimelineMarkerCellView
           ↳ com.sap.cloud.mobile.fiori.timelineview.views.TimelinePreviewCellView

Class Overview

A concrete class for representing the cells for TimelinePreview view, follows the structure of TimelineMarkerCellView.

Important

    Due Date

    A date when the event is due or occurred is must have field for the timeline preview cell. All the cells are sorted in order of their due dates. See setDueDate(Date).

Summary

[Expand]
Inherited XML Attributes
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineMarkerCellView
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
[Expand]
Inherited Constants
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
From class android.view.ViewGroup
From class android.view.View
Fields
protected int mBarMB Chronology bar bottom margin
protected int mBarMT Chronology bar top margin
[Expand]
Inherited Fields
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineMarkerCellView
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
From class android.view.View
Public Constructors
TimelinePreviewCellView(Context context)
TimelinePreviewCellView(Context context, AttributeSet attrs)
TimelinePreviewCellView(Context context, AttributeSet attrs, int defStyleAttr)
TimelinePreviewCellView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
int getBarMarginBottom()
Get the Bottom margin of ChronologyBar.
int getBarMarginTop()
Get the Top margin of ChronologyBar.
TimelineCellView.TimelineCellType getCellType()
void recycle()
Recycle the view for reuse
void setBarMarginBottom(int mBarMB)
Set the Bottom margin of ChronologyBar.
void setBarMarginTop(int mBarMT)
Set the Top margin of ChronologyBar.
Protected Methods
int[] measureSelf(int widthMeasureSpec, int heightMeasureSpec)
Measures this TimelineMarkerCellView in the given android.view.View.MeasureSpec
void onLayout(boolean b, int i, int i1, int i2, int i3)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
Measure the cell
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineMarkerCellView
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Fields

protected int mBarMB

Chronology bar bottom margin

protected int mBarMT

Chronology bar top margin

Public Constructors

public TimelinePreviewCellView (Context context)

public TimelinePreviewCellView (Context context, AttributeSet attrs)

public TimelinePreviewCellView (Context context, AttributeSet attrs, int defStyleAttr)

public TimelinePreviewCellView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public int getBarMarginBottom ()

Get the Bottom margin of ChronologyBar.

Returns
  • int

public int getBarMarginTop ()

Get the Top margin of ChronologyBar.

Returns
  • int

public void recycle ()

Recycle the view for reuse

public void setBarMarginBottom (int mBarMB)

Set the Bottom margin of ChronologyBar.

Parameters
mBarMB int

public void setBarMarginTop (int mBarMT)

Set the Top margin of ChronologyBar.

Parameters
mBarMT int

Protected Methods

protected int[] measureSelf (int widthMeasureSpec, int heightMeasureSpec)

Measures this TimelineMarkerCellView in the given android.view.View.MeasureSpec

Parameters
widthMeasureSpec android.view.View.MeasureSpec
heightMeasureSpec android.view.View.MeasureSpec
Returns
  • int[]

protected void onLayout (boolean b, int i, int i1, int i2, int i3)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Measure the cell

Parameters
widthMeasureSpec int
heightMeasureSpec int