public class

KpiHeader

extends ViewGroup
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.sap.cloud.mobile.fiori.kpi.KpiHeader

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
Fields
protected int mAvailableWidth
protected boolean mIsLandscape
protected boolean mIsTablet
protected float mKeylineStart
protected float mLargeMargin
protected List<KpiView> mList
protected int mMaxHeight
protected float mMediumMargin
protected List<KpiHeader.KpiPage> mPages
protected int mPaginatorDotSize
protected float mProgressViewMargin
protected boolean mShouldAttachOrientationListener
protected float mSmallMargin
protected float mViewMargin
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
KpiHeader(Context context)
KpiHeader(Context context, AttributeSet attrs)
KpiHeader(Context context, AttributeSet attrs, int defStyleAttr)
KpiHeader(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void addKpiView(int index, KpiView view)
void addKpiView(KpiView view)
void calculatePages()
void clear()
KpiView getItem(int index)
int getItemCount()
KpiHeader.KpiPage getPage(int index)
int getPageCount()
void notifyHeaderChanged()
void removeKpiView(int index)
void setShouldAttachOrientationListener(boolean shouldAttach)
Determines if an OrientationEventListener should be attached.
Protected Methods
void init()
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 int mAvailableWidth

protected boolean mIsLandscape

protected boolean mIsTablet

protected float mKeylineStart

protected float mLargeMargin

protected List<KpiView> mList

protected int mMaxHeight

protected float mMediumMargin

protected List<KpiHeader.KpiPage> mPages

protected int mPaginatorDotSize

protected float mProgressViewMargin

protected boolean mShouldAttachOrientationListener

protected float mSmallMargin

protected float mViewMargin

Public Constructors

public KpiHeader (Context context)

public KpiHeader (Context context, AttributeSet attrs)

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

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

Public Methods

public void addKpiView (int index, KpiView view)

public void addKpiView (KpiView view)

public void calculatePages ()

public void clear ()

public KpiView getItem (int index)

public int getItemCount ()

public KpiHeader.KpiPage getPage (int index)

public int getPageCount ()

public void notifyHeaderChanged ()

public void removeKpiView (int index)

public void setShouldAttachOrientationListener (boolean shouldAttach)

Determines if an OrientationEventListener should be attached.

Parameters
shouldAttach Whether the KpiHeader should consider attaching an OrientationEventListener or not

Protected Methods

protected void init ()

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

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)