public class

TimelineDetailedCellView

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.TimelineDetailedCellView

Class Overview

A concrete class demonstrating a chronological event. This view of the cell has a lot more details than others.

Structure

  • Chronology Bar
  • A Chronological bar representing the event. This bar can also be assigned a drawable as logo of the event.

  • Due Date
  • A date when the event is due or occurred See setDueDate(Date).

  • State
  • The state of the Timeline cell. A cell can be in one of the multiple possible states. See TimelineCellView.TimelineCellState for possible states a cell can be. See setState(TimelineCellState), and getState().

  • Headline
  • This text field is the headline of the event. This can be 3 lines long.

  • Event
  • This text field is the small detail appears on the left side of the chronology bar.

  • Event logo
  • This image field is the drawable detail of the event and appears on the left side of the chronology bar.

  • Status logo
  • This image field is the drawable detail of the status and appears on the top right corner of the chronology bar.

  • Sub Status logo
  • This image field is an additional drawable status detail of the cell and appears on the left side of the chronology bar below the status.

  • Status
  • This textual field is the status of the cell and appears on the top of the chronology bar.

  • Sub Status
  • This textual field is the sub status of the cell and appears below the state of the chronology bar.

  • Sub Headline
  • Sub headline of the cell is textual field and carries additional information about the headline. It appears below headline and another status fields.

  • Attribute
  • This textual field appears on the left bottom of the cell and carries attribute about cell.

  • Sub Attribute
  • This textual field appears on the right bottom of the cell and carries attribute about cell.

Summary

XML Attributes
Attribute Name Related Method Description
com.sap.cloud.mobile.fiori:attribute Attribute of the timeline

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:event Event of the timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:eventLogo Event logo of timeline cell

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:headline Headline of the timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:leftPaneWidthRatio Left width of timeline cell

May be a floating point value, such as "1.2". 

com.sap.cloud.mobile.fiori:node Node logo of timeline cell

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:status Status of the timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:statusLogo Status logo of timeline cell

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:subAttribute Sub attribute of the timeline

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:subHeadline Sub headline of the cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:subStatus Sub status of timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; 

com.sap.cloud.mobile.fiori:subStatusLogo Sub Status logo of timeline cell

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineAttributeTextAppearance Timeline attribute text appearance resource

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineEventTextAppearance Text appearance of event

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineHeadlineTextAppearance Text appearance of the cell

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineStatusTextAppearance Text appearance of timeline status

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineSubAttributeTextAppearance Text appearance of your sub attribute

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineSubHeadlineTextAppearance Text appearance resource for sub headline of the timeline

May be an integer value, such as "100". 

com.sap.cloud.mobile.fiori:timelineSubStatusTextAppearance Text appearance of sub status text appearance

May be an integer value, such as "100". 

[Expand]
Inherited XML Attributes
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineMarkerCellView
From class com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
Constants
int DEFAULT_CARD_MARGIN Default card margin
[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 mAttributeMB Attribute bottom margin
protected int mAttributeME Attribute end margin
protected int mAttributeMS Attribute start margin
protected int mAttributeMT Attribute top margin
protected CharSequence mAttributeText Attribute text
protected int mAttributeTextAppearance Attribute text appearance
protected int mAttributeTextColor Attribute text color
protected TextView mAttributeTextView Attribute text view
protected int mAttributeWidthThreshold Attribute threshold width
protected int mCardMB Card bottom margin
protected int mCardME Card end margin
protected int mCardMS Card start margin
protected int mCardMT Card top margin
protected CardView mCardView Card View
protected int mHeadlineWidthThreshold Headline width threshold
protected ImageView mStatusLogo Image view for status logo
protected int mStatusLogoMB Status logo bottom margin
protected int mStatusLogoME Status logo end margin
protected int mStatusLogoMS Status logo start margin
protected int mStatusLogoMT Status logo top margin
protected int mStatusLogoSize Status logo size
protected int mStatusMB Status text bottom margin
protected int mStatusME Status text end margin
protected int mStatusMS Status text start margin
protected int mStatusMT Status text top margin
protected CharSequence mStatusText Status text text
protected int mStatusTextAppearance Status text appearance
protected int mStatusTextColor Status text color
protected TextView mStatusTextView Status text view
protected int mSubAttributeMB Sub Attribute bottom margin
protected int mSubAttributeME Sub Attribute end margin
protected int mSubAttributeMS Sub Attribute start margin
protected int mSubAttributeMT Sub Attribute top margin
protected CharSequence mSubAttributeText Sub Attribute text attribute
protected int mSubAttributeTextAppearance Sub Attribute text appearance
protected int mSubAttributeTextColor Sub Attribute text color
protected TextView mSubAttributeTextView Sub Attribute text view
protected int mSubHeadlineMB Sub Headline bottom margin
protected int mSubHeadlineME Sub Headline end margin
protected int mSubHeadlineMS Sub Headline start margin
protected int mSubHeadlineMT Sub Headline top margin
protected int mSubHeadlineTextAppearance Sub Headline text appearance
protected int mSubHeadlineTextColor Sub Headline text color
protected TextView mSubHeadlineTextView Sub Headline text view
protected ImageView mSubStatusLogo Image view for status logo
protected int mSubStatusLogoMB Sub Status logo bottom margin
protected int mSubStatusLogoME Sub Status logo end margin
protected int mSubStatusLogoMS Sub Status logo start margin
protected int mSubStatusLogoMT Sub Status logo top margin
protected int mSubStatusLogoSize Sub Status logo size
protected int mSubStatusMB Sub Status bottom margin
protected int mSubStatusME Sub Status end margin
protected int mSubStatusMS Sub Status start margin
protected int mSubStatusMT Sub Status top margin
protected CharSequence mSubStatusText Sub Status text
protected int mSubStatusTextAppearance Sub Status text appearance
protected int mSubStatusTextColor Sub Status text color
protected TextView mSubStatusTextView Sub Status text view
[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
TimelineDetailedCellView(Context context)
TimelineDetailedCellView(Context context, AttributeSet attrs)
TimelineDetailedCellView(Context context, AttributeSet attrs, int defStyleAttr)
TimelineDetailedCellView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
CharSequence getAttribute()
Get the attribute of the cell
int getAttributeMarginBottom()
int getAttributeMarginEnd()
int getAttributeMarginStart()
int getAttributeMarginTop()
int getAttributeWidthThreshold()
Get the minimum width of the attribute
TimelineCellView.TimelineCellType getCellType()
Get the type of cell
int getHeadlineWidthThreshold()
Get the minimum width of the headline
CharSequence getStatus()
Get the status of the cell
Drawable getStatusLogo()
Return the current logo drawable.
int getStatusLogoSize()
Get the status logo size
int getStatusMarginBottom()
int getStatusMarginEnd()
int getStatusMarginStart()
int getStatusMarginTop()
CharSequence getSubAttribute()
Get the sub attribute of the cell
int getSubAttributeMarginBottom()
int getSubAttributeMarginEnd()
int getSubAttributeMarginStart()
int getSubAttributeMarginTop()
CharSequence getSubHeadline()
Get the sub headline of the cell
int getSubHeadlineMarginBottom()
int getSubHeadlineMarginEnd()
int getSubHeadlineMarginStart()
int getSubHeadlineMarginTop()
CharSequence getSubStatus()
Get the sub status of the cell
Drawable getSubStatusLogo()
Return the current logo drawable.
int getSubStatusLogoSize()
set the sub status logo size
int getSubStatusMarginBottom()
int getSubStatusMarginEnd()
int getSubStatusMarginStart()
int getSubStatusMarginTop()
void recycle()
Recycle the view for reuse
void setAttribute(CharSequence attribute)
Set the attribute of this cell.
void setAttribute(int resId)
Set the attribute of this cell.
void setAttributeMargin(int start, int top, int end, int bottom)
Sets the attribute margin.
void setAttributeMarginBottom(int margin)
Sets the bottom Attribute margin in pixels.
void setAttributeMarginEnd(int margin)
Sets the ending Attribute margin in pixels.
void setAttributeMarginStart(int margin)
Sets the starting Attribute margin in pixels.
void setAttributeMarginTop(int margin)
Sets the top Attribute margin in pixels.
void setAttributeTextAppearance(int resId)
Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setAttributeTextAppearance(Context context, int resId)
* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setAttributeTextColor(int color)
Sets the text color of the Attribute, if present.
void setAttributeWidthThreshold(int attributeWidthThreshold)
Set the minimum width of the attribute
void setHeadlineWidthThreshold(int headlineWidthThreshold)
Set the minimum headline width
void setStatus(CharSequence status)
Set the status of this cell.
void setStatus(int resId)
Set the Status of this cell.
void setStatusLogo(int resId)
Set a status logo drawable from a resource id.
void setStatusLogo(Drawable drawable)
Set a event logo drawable.
void setStatusLogoDescription(CharSequence description)
Set a description of the status logo.
void setStatusLogoDescription(int resId)
Set a description of the status logo.
void setStatusLogoSize(int mStatusLogoSize)
Set the status logo size
void setStatusMargin(int start, int top, int end, int bottom)
Sets the Status margin.
void setStatusMarginBottom(int margin)
Sets the bottom Status margin in pixels.
void setStatusMarginEnd(int margin)
Sets the ending Status margin in pixels.
void setStatusMarginStart(int margin)
Sets the starting Status margin in pixels.
void setStatusMarginTop(int margin)
Sets the top Status margin in pixels.
void setStatusTextAppearance(Context context, int resId)
* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setStatusTextAppearance(int resId)
Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setStatusTextColor(int color)
Sets the text color of the status, if present.
void setSubAttribute(CharSequence subAttribute)
Set the sub Attribute of this cell.
void setSubAttribute(int resId)
Set the SubAttribute of this cell.
void setSubAttributeMargin(int start, int top, int end, int bottom)
Sets the Sub Attribute margin.
void setSubAttributeMarginBottom(int margin)
Sets the bottom Sub Attribute margin in pixels.
void setSubAttributeMarginEnd(int margin)
Sets the ending Sub Attribute margin in pixels.
void setSubAttributeMarginStart(int margin)
Sets the starting Attribute margin in pixels.
void setSubAttributeMarginTop(int margin)
Sets the top Sub Attribute margin in pixels.
void setSubAttributeTextAppearance(Context context, int resId)
* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setSubAttributeTextAppearance(int resId)
* Sets the text color, size, style, hint color, and highlight colo from the specified TextAppearance resource.
void setSubAttributeTextColor(int color)
Sets the text color of the Sub Attribute, if present.
void setSubHeadline(CharSequence subHeadline)
Set the subHeadline of this cell.
void setSubHeadline(int resId)
Set the SubHeadline of this cell.
void setSubHeadlineMargin(int start, int top, int end, int bottom)
Sets the Sub Headline margin.
void setSubHeadlineMarginBottom(int margin)
Sets the bottom SubHeadline margin in pixels.
void setSubHeadlineMarginEnd(int margin)
Sets the ending SubHeadline margin in pixels.
void setSubHeadlineMarginStart(int margin)
Sets the starting Headline margin in pixels.
void setSubHeadlineMarginTop(int margin)
Sets the top Sub Headline margin in pixels.
void setSubHeadlineTextAppearance(int resId)
Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setSubHeadlineTextAppearance(Context context, int resId)
Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setSubHeadlineTextColor(int color)
Sets the text color of the SubHeadline, if present.
void setSubStatus(int resId)
Set the Sub Status of this cell.
void setSubStatus(CharSequence subStatus)
Set the Sub status of this cell.
void setSubStatusLogo(int resId)
Set a Sub status logo drawable from a resource id.
void setSubStatusLogo(Drawable drawable)
Set a Sub status logo drawable.
void setSubStatusLogoDescription(int resId)
Set a description of the Sub status logo.
void setSubStatusLogoDescription(CharSequence description)
Set a description of the Sub status logo.
void setSubStatusLogoSize(int mSubStatusLogoSize)
Set the sub status logo size
void setSubStatusMargin(int start, int top, int end, int bottom)
Sets the Sub Status margin.
void setSubStatusMarginBottom(int margin)
Sets the bottom Sub Status margin in pixels.
void setSubStatusMarginEnd(int margin)
Sets the ending Sub Status margin in pixels.
void setSubStatusMarginStart(int margin)
Sets the starting Sub Status margin in pixels.
void setSubStatusMarginTop(int margin)
Sets the top Sub Status margin in pixels.
void setSubStatusTextAppearance(int resId)
* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setSubStatusTextAppearance(Context context, int resId)
Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
void setSubStatusTextColor(int color)
Sets the text color of the Sub status, if present.
Protected Methods
void initialize(AttributeSet attrs, int defStyle, int defStyleRes)
Handle the typed attribute
int[] measureSelf(int widthMeasureSpec, int heightMeasureSpec)
Measure the required size
void onLayout(boolean changed, int l, int t, int r, int b)
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

XML Attributes

com.sap.cloud.mobile.fiori:attribute

Attribute of the timeline

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:event

Event of the timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:eventLogo

Event logo of timeline cell

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:headline

Headline of the timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:leftPaneWidthRatio

Left width of timeline cell

May be a floating point value, such as "1.2".

Related Methods

com.sap.cloud.mobile.fiori:node

Node logo of timeline cell

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:status

Status of the timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:statusLogo

Status logo of timeline cell

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:subAttribute

Sub attribute of the timeline

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:subHeadline

Sub headline of the cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:subStatus

Sub status of timeline cell

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Related Methods

com.sap.cloud.mobile.fiori:subStatusLogo

Sub Status logo of timeline cell

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineAttributeTextAppearance

Timeline attribute text appearance resource

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineEventTextAppearance

Text appearance of event

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineHeadlineTextAppearance

Text appearance of the cell

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineStatusTextAppearance

Text appearance of timeline status

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineSubAttributeTextAppearance

Text appearance of your sub attribute

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineSubHeadlineTextAppearance

Text appearance resource for sub headline of the timeline

May be an integer value, such as "100".

Related Methods

com.sap.cloud.mobile.fiori:timelineSubStatusTextAppearance

Text appearance of sub status text appearance

May be an integer value, such as "100".

Related Methods

Constants

protected static final int DEFAULT_CARD_MARGIN

Default card margin

Constant Value: 8 (0x00000008)

Fields

protected int mAttributeMB

Attribute bottom margin

protected int mAttributeME

Attribute end margin

protected int mAttributeMS

Attribute start margin

protected int mAttributeMT

Attribute top margin

protected CharSequence mAttributeText

Attribute text

protected int mAttributeTextAppearance

Attribute text appearance

protected int mAttributeTextColor

Attribute text color

protected TextView mAttributeTextView

Attribute text view

protected int mAttributeWidthThreshold

Attribute threshold width

protected int mCardMB

Card bottom margin

protected int mCardME

Card end margin

protected int mCardMS

Card start margin

protected int mCardMT

Card top margin

protected CardView mCardView

Card View

protected int mHeadlineWidthThreshold

Headline width threshold

protected ImageView mStatusLogo

Image view for status logo

protected int mStatusLogoMB

Status logo bottom margin

protected int mStatusLogoME

Status logo end margin

protected int mStatusLogoMS

Status logo start margin

protected int mStatusLogoMT

Status logo top margin

protected int mStatusLogoSize

Status logo size

protected int mStatusMB

Status text bottom margin

protected int mStatusME

Status text end margin

protected int mStatusMS

Status text start margin

protected int mStatusMT

Status text top margin

protected CharSequence mStatusText

Status text text

protected int mStatusTextAppearance

Status text appearance

protected int mStatusTextColor

Status text color

protected TextView mStatusTextView

Status text view

protected int mSubAttributeMB

Sub Attribute bottom margin

protected int mSubAttributeME

Sub Attribute end margin

protected int mSubAttributeMS

Sub Attribute start margin

protected int mSubAttributeMT

Sub Attribute top margin

protected CharSequence mSubAttributeText

Sub Attribute text attribute

protected int mSubAttributeTextAppearance

Sub Attribute text appearance

protected int mSubAttributeTextColor

Sub Attribute text color

protected TextView mSubAttributeTextView

Sub Attribute text view

protected int mSubHeadlineMB

Sub Headline bottom margin

protected int mSubHeadlineME

Sub Headline end margin

protected int mSubHeadlineMS

Sub Headline start margin

protected int mSubHeadlineMT

Sub Headline top margin

protected int mSubHeadlineTextAppearance

Sub Headline text appearance

protected int mSubHeadlineTextColor

Sub Headline text color

protected TextView mSubHeadlineTextView

Sub Headline text view

protected ImageView mSubStatusLogo

Image view for status logo

protected int mSubStatusLogoMB

Sub Status logo bottom margin

protected int mSubStatusLogoME

Sub Status logo end margin

protected int mSubStatusLogoMS

Sub Status logo start margin

protected int mSubStatusLogoMT

Sub Status logo top margin

protected int mSubStatusLogoSize

Sub Status logo size

protected int mSubStatusMB

Sub Status bottom margin

protected int mSubStatusME

Sub Status end margin

protected int mSubStatusMS

Sub Status start margin

protected int mSubStatusMT

Sub Status top margin

protected CharSequence mSubStatusText

Sub Status text

protected int mSubStatusTextAppearance

Sub Status text appearance

protected int mSubStatusTextColor

Sub Status text color

protected TextView mSubStatusTextView

Sub Status text view

Public Constructors

public TimelineDetailedCellView (Context context)

public TimelineDetailedCellView (Context context, AttributeSet attrs)

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

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

Public Methods

public CharSequence getAttribute ()

Get the attribute of the cell

Returns
  • CharSequence

public int getAttributeMarginBottom ()

Returns
  • the bottom Attribute margin in pixels

public int getAttributeMarginEnd ()

Returns
  • the ending Attribute margin in pixels

public int getAttributeMarginStart ()

Returns
  • the starting Attribute margin in pixels

public int getAttributeMarginTop ()

Returns
  • the top Attribute margin in pixels

public int getAttributeWidthThreshold ()

Get the minimum width of the attribute

Returns
  • int

public TimelineCellView.TimelineCellType getCellType ()

Get the type of cell

public int getHeadlineWidthThreshold ()

Get the minimum width of the headline

Returns
  • int

public CharSequence getStatus ()

Get the status of the cell

Returns
  • CharSequence

public Drawable getStatusLogo ()

Return the current logo drawable.

Returns
  • The current logo drawable

public int getStatusLogoSize ()

Get the status logo size

Returns
  • int

public int getStatusMarginBottom ()

Returns
  • the bottom Status margin in pixels

public int getStatusMarginEnd ()

Returns
  • the ending Status margin in pixels

public int getStatusMarginStart ()

Returns
  • the starting Status margin in pixels

public int getStatusMarginTop ()

Returns
  • the top Status margin in pixels

public CharSequence getSubAttribute ()

Get the sub attribute of the cell

Returns
  • CharSequence

public int getSubAttributeMarginBottom ()

Returns
  • the bottom Sub Attribute margin in pixels

public int getSubAttributeMarginEnd ()

Returns
  • the ending Sub Attribute margin in pixels

public int getSubAttributeMarginStart ()

Returns
  • the starting sub Attribute margin in pixels

public int getSubAttributeMarginTop ()

Returns
  • the top sub Attribute margin in pixels

public CharSequence getSubHeadline ()

Get the sub headline of the cell

Returns
  • CharSequence

public int getSubHeadlineMarginBottom ()

Returns
  • the bottom SubHeadline margin in pixels

public int getSubHeadlineMarginEnd ()

Returns
  • the ending SubHeadline margin in pixels

public int getSubHeadlineMarginStart ()

Returns
  • the starting Headline margin in pixels

public int getSubHeadlineMarginTop ()

Returns
  • the top sub Headline margin in pixels

public CharSequence getSubStatus ()

Get the sub status of the cell

Returns
  • CharSequence

public Drawable getSubStatusLogo ()

Return the current logo drawable.

Returns
  • The current logo drawable

public int getSubStatusLogoSize ()

set the sub status logo size

Returns
  • int

public int getSubStatusMarginBottom ()

Returns
  • the bottom Sub Status margin in pixels

public int getSubStatusMarginEnd ()

Returns
  • the ending Sub Status margin in pixels

public int getSubStatusMarginStart ()

Returns
  • the starting Sub Status margin in pixels

public int getSubStatusMarginTop ()

Returns
  • the top Sub Status margin in pixels

public void recycle ()

Recycle the view for reuse

public void setAttribute (CharSequence attribute)

Set the attribute of this cell.

A attribute should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters
attribute Headline to set
See Also

public void setAttribute (int resId)

Set the attribute of this cell.

Parameters
resId Resource ID of a string to set as the SubHeadline
See Also

public void setAttributeMargin (int start, int top, int end, int bottom)

Sets the attribute margin.

Parameters
start the starting attribute margin in pixels
top the top attribute margin in pixels
end the ending attribute margin in pixels
bottom the bottom attribute margin in pixels

public void setAttributeMarginBottom (int margin)

Sets the bottom Attribute margin in pixels.

Parameters
margin the bottom Attribute margin in pixels

public void setAttributeMarginEnd (int margin)

Sets the ending Attribute margin in pixels.

Parameters
margin the ending Attribute margin in pixels

public void setAttributeMarginStart (int margin)

Sets the starting Attribute margin in pixels.

Parameters
margin the starting Attribute margin in pixels

public void setAttributeMarginTop (int margin)

Sets the top Attribute margin in pixels.

Parameters
margin the top Attribute margin in pixels

public void setAttributeTextAppearance (int resId)

Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
resId int, resource id

public void setAttributeTextAppearance (Context context, int resId)

* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
context Context
resId int, resource id

public void setAttributeTextColor (int color)

Sets the text color of the Attribute, if present.

Parameters
color The new text color in 0xAARRGGBB format

public void setAttributeWidthThreshold (int attributeWidthThreshold)

Set the minimum width of the attribute

Parameters
attributeWidthThreshold int

public void setHeadlineWidthThreshold (int headlineWidthThreshold)

Set the minimum headline width

Parameters
headlineWidthThreshold int

public void setStatus (CharSequence status)

Set the status of this cell.

A status should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters
status Headline to set

public void setStatus (int resId)

Set the Status of this cell.

Parameters
resId Resource ID of a string to set as the headline

public void setStatusLogo (int resId)

Set a status logo drawable from a resource id.

This drawable should generally take the place of title text. The logo cannot be clicked. Apps using a logo should also supply a description using setEventLogoDescription(int).

Parameters
resId ID of a drawable resource

public void setStatusLogo (Drawable drawable)

Set a event logo drawable. setStatusLogoDescription(int).

Parameters
drawable Drawable to use as a logo

public void setStatusLogoDescription (CharSequence description)

Set a description of the status logo.

This description will be used for accessibility or other similar descriptions of the UI.

Parameters
description Description to set

public void setStatusLogoDescription (int resId)

Set a description of the status logo.

This description will be used for accessibility or other similar descriptions of the UI.

Parameters
resId String resource id

public void setStatusLogoSize (int mStatusLogoSize)

Set the status logo size

Parameters
mStatusLogoSize int

public void setStatusMargin (int start, int top, int end, int bottom)

Sets the Status margin.

Parameters
start the starting Status margin in pixels
top the top Status margin in pixels
end the ending Status margin in pixels
bottom the bottom Status margin in pixels

public void setStatusMarginBottom (int margin)

Sets the bottom Status margin in pixels.

Parameters
margin the bottom Status margin in pixels

public void setStatusMarginEnd (int margin)

Sets the ending Status margin in pixels.

Parameters
margin the ending Headline margin in pixels

public void setStatusMarginStart (int margin)

Sets the starting Status margin in pixels.

Parameters
margin the starting Status margin in pixels

public void setStatusMarginTop (int margin)

Sets the top Status margin in pixels.

Parameters
margin the top Headline margin in pixels

public void setStatusTextAppearance (Context context, int resId)

* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
context Context
resId int, resource id

public void setStatusTextAppearance (int resId)

Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
resId int, resource id

public void setStatusTextColor (int color)

Sets the text color of the status, if present.

Parameters
color The new text color in 0xAARRGGBB format

public void setSubAttribute (CharSequence subAttribute)

Set the sub Attribute of this cell.

A sub Attribute should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters
subAttribute Headline to set
See Also

public void setSubAttribute (int resId)

Set the SubAttribute of this cell.

Parameters
resId Resource ID of a string to set as the SubAttribute

public void setSubAttributeMargin (int start, int top, int end, int bottom)

Sets the Sub Attribute margin.

Parameters
start the starting Sub Attribute margin in pixels
top the top Sub Attribute margin in pixels
end the ending Sub Attribute margin in pixels
bottom the bottom sub Attribute margin in pixels

public void setSubAttributeMarginBottom (int margin)

Sets the bottom Sub Attribute margin in pixels.

Parameters
margin the bottom sub Attribute margin in pixels

public void setSubAttributeMarginEnd (int margin)

Sets the ending Sub Attribute margin in pixels.

Parameters
margin the ending Sub Attribute margin in pixels

public void setSubAttributeMarginStart (int margin)

Sets the starting Attribute margin in pixels.

Parameters
margin the starting Sub Attribute margin in pixels

public void setSubAttributeMarginTop (int margin)

Sets the top Sub Attribute margin in pixels.

Parameters
margin the top sub Attribute margin in pixels

public void setSubAttributeTextAppearance (Context context, int resId)

* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
context Context
resId int, resource id

public void setSubAttributeTextAppearance (int resId)

* Sets the text color, size, style, hint color, and highlight colo from the specified TextAppearance resource.

Parameters
resId int, resource id

public void setSubAttributeTextColor (int color)

Sets the text color of the Sub Attribute, if present.

Parameters
color The new text color in 0xAARRGGBB format

public void setSubHeadline (CharSequence subHeadline)

Set the subHeadline of this cell.

A subHeadline should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters
subHeadline Headline to set

public void setSubHeadline (int resId)

Set the SubHeadline of this cell.

Parameters
resId Resource ID of a string to set as the SubHeadline

public void setSubHeadlineMargin (int start, int top, int end, int bottom)

Sets the Sub Headline margin.

Parameters
start the starting Sub Headline margin in pixels
top the top Sub Headline margin in pixels
end the ending Sub Headline margin in pixels
bottom the bottom sub Headline margin in pixels

public void setSubHeadlineMarginBottom (int margin)

Sets the bottom SubHeadline margin in pixels.

Parameters
margin the bottom Headline margin in pixels

public void setSubHeadlineMarginEnd (int margin)

Sets the ending SubHeadline margin in pixels.

Parameters
margin the ending SubHeadline margin in pixels

public void setSubHeadlineMarginStart (int margin)

Sets the starting Headline margin in pixels.

Parameters
margin the starting Sub Headline margin in pixels

public void setSubHeadlineMarginTop (int margin)

Sets the top Sub Headline margin in pixels.

Parameters
margin the top sub Headline margin in pixels

public void setSubHeadlineTextAppearance (int resId)

Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
resId int

public void setSubHeadlineTextAppearance (Context context, int resId)

Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
context Context
resId int

public void setSubHeadlineTextColor (int color)

Sets the text color of the SubHeadline, if present.

Parameters
color The new text color in 0xAARRGGBB format

public void setSubStatus (int resId)

Set the Sub Status of this cell.

Parameters
resId Resource ID of a string to set as the headline

public void setSubStatus (CharSequence subStatus)

Set the Sub status of this cell.

A status should be used as the anchor for a section of content. It should describe or name the content being viewed.

Parameters
subStatus Headline to set

public void setSubStatusLogo (int resId)

Set a Sub status logo drawable from a resource id.

This drawable should generally take the place of title text. The logo cannot be clicked. Apps using a logo should also supply a description using setSubStatusLogoDescription(int).

Parameters
resId ID of a drawable resource

public void setSubStatusLogo (Drawable drawable)

Set a Sub status logo drawable. setSubStatusLogoDescription(int).

Parameters
drawable Drawable to use as a logo

public void setSubStatusLogoDescription (int resId)

Set a description of the Sub status logo.

This description will be used for accessibility or other similar descriptions of the UI.

Parameters
resId String resource id

public void setSubStatusLogoDescription (CharSequence description)

Set a description of the Sub status logo.

This description will be used for accessibility or other similar descriptions of the UI.

Parameters
description Description to set

public void setSubStatusLogoSize (int mSubStatusLogoSize)

Set the sub status logo size

Parameters
mSubStatusLogoSize int

public void setSubStatusMargin (int start, int top, int end, int bottom)

Sets the Sub Status margin.

Parameters
start the starting Sub Status margin in pixels
top the top Sub Status margin in pixels
end the ending Sub Status margin in pixels
bottom the bottom Sub Status margin in pixels

public void setSubStatusMarginBottom (int margin)

Sets the bottom Sub Status margin in pixels.

Parameters
margin the bottom Sub Status margin in pixels

public void setSubStatusMarginEnd (int margin)

Sets the ending Sub Status margin in pixels.

Parameters
margin the ending Sub status margin in pixels

public void setSubStatusMarginStart (int margin)

Sets the starting Sub Status margin in pixels.

Parameters
margin the starting Sub Status margin in pixels

public void setSubStatusMarginTop (int margin)

Sets the top Sub Status margin in pixels.

Parameters
margin the top Sub status margin in pixels

public void setSubStatusTextAppearance (int resId)

* Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
resId int, resource id

public void setSubStatusTextAppearance (Context context, int resId)

Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.

Parameters
context Context
resId int, resource id

public void setSubStatusTextColor (int color)

Sets the text color of the Sub status, if present.

Parameters
color The new text color in 0xAARRGGBB format

Protected Methods

protected void initialize (AttributeSet attrs, int defStyle, int defStyleRes)

Handle the typed attribute

Parameters
attrs AttributeSet
defStyle Integer
defStyleRes Integer

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

Measure the required size

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

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

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Measure the cell

Parameters
widthMeasureSpec int
heightMeasureSpec int