public class

TimelinePreviewView

extends ViewGroup
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.sap.cloud.mobile.fiori.timeline.TimelinePreviewView

Class Overview

A Timeline preview provides brief information about a detailed Timeline. Timeline Preview represents a sequence of events over a span of time.

Using TimelinePreviewView as RecyclerView is not advisable.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
Fields
protected Button mButton
protected int mButtonBackground
protected int mButtonTextAppearance
protected int mCellWidth
protected int mNumCells
protected List<TimelineCellData> mOrderedCellDataList
protected List<TimelinePreviewCellView> mOrderedCellsList
protected int mPadding
protected int mPaddingTop
protected boolean mShowButton
protected boolean mShowTitle
protected TextView mTitle
protected int mTitleTextAppearance
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
TimelinePreviewView(Context context)
TimelinePreviewView(Context context, AttributeSet attrs)
TimelinePreviewView(Context context, AttributeSet attrs, int defStyleAttr)
TimelinePreviewView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void addView(View child)
List<TimelineCellData> getOrderedCellsList()
void setCellList(Context context, List<TimelineCellData> list)
void setShowButton(boolean showButton)
void setShowTitle(boolean showTitle)
Protected Methods
void measureChildConstrained(View child, int parentWidthSpec, int widthUsed, int widthConstraint, int parentHeightSpec, int heightUsed, int heightConstraint)
void onLayout(boolean changed, int l, int t, int r, int b)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
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 Button mButton

protected int mButtonBackground

protected int mButtonTextAppearance

protected int mCellWidth

protected int mNumCells

protected List<TimelineCellData> mOrderedCellDataList

protected List<TimelinePreviewCellView> mOrderedCellsList

protected int mPadding

protected int mPaddingTop

protected boolean mShowButton

protected boolean mShowTitle

protected TextView mTitle

protected int mTitleTextAppearance

Public Constructors

public TimelinePreviewView (Context context)

public TimelinePreviewView (Context context, AttributeSet attrs)

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

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

Public Methods

public void addView (View child)

public List<TimelineCellData> getOrderedCellsList ()

public void setCellList (Context context, List<TimelineCellData> list)

public void setShowButton (boolean showButton)

public void setShowTitle (boolean showTitle)

Protected Methods

protected void measureChildConstrained (View child, int parentWidthSpec, int widthUsed, int widthConstraint, int parentHeightSpec, int heightUsed, int heightConstraint)

protected void onLayout (boolean changed, int l, int t, int r, int b)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)