Class Overview

The object header provides a quick view of the most important or most frequently-used
information about one instance of an object. It is visually separated from the content area
below. As the object header provides the first glimpse of the object on the screen, the
information it contains should be clear and concise.

Structure

The object header is comprised of several pieces of information about the object:

When there are no analytics to display, a description paragraph may instead be included.
The paragraph should not exceed a maximum of four lines of text, and should only be used when
it provides the user with valuable information.

com.sap.cloud.mobile.fiori:footnoteTextAppearance

May be a reference to another resource, in the form
"@[+][package:]type/name" or a theme
attribute in the form
"?[package:]type/name".

Related Methods

com.sap.cloud.mobile.fiori:headline

The headline associated with the AbstractEntityCell. Mandatory.

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:headlineLines

Makes the headline be exactly this many lines tall.
Default value is 1 if not specified. When it's 2, footnote
will disappear; when it's 3, sub headline will also disappear.
This must be equal to or less than "lines".

Related Methods

com.sap.cloud.mobile.fiori:headlineTextAppearance

May be a reference to another resource, in the form
"@[+][package:]type/name" or a theme
attribute in the form
"?[package:]type/name".

Related Methods

com.sap.cloud.mobile.fiori:layout_header_group

Specifies which layout group the child view should belong. This must be set for any
child views of an ObjectHeader, otherwise the view will be ignored.

Must be one of the following constant values.

Constant

Value

Description

DETAIL

c

Designates a view to show in ObjectHeader details group

INTERNAL

0

Reserved for internal usage

STATUS

1

Designates a view to show in ObjectHeader status group. This is the default if not specified.

TAG

b

Designates a view to show in ObjectHeader tags group

Related Methods

com.sap.cloud.mobile.fiori:preserveDetailImageSpacing

Whether to preserve detail image space when image is null

May be a boolean value, such as "true" or
"false".

Related Methods

com.sap.cloud.mobile.fiori:statusWidth

Sets the fixed status width.

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

Related Methods

com.sap.cloud.mobile.fiori:subheadline

The subheadline associated with the AbstractEntityCell. Under headline.

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

Related XML Attributes

Parameters

description

The description.

public
void
setDescriptionWidthPercent(float descriptionWidthPercent)

Sets the description width percentage in the space shared by headline and description.
This ratio is also used to determine additional info or detail/analytics view width when
they are rendered horizontally with the title area.

Related XML Attributes

Parameters

Sets the detail view which can be used to show analytics information.
On tablet if detail view is set, description will be hidden.
The width of the detailView on tablet can be controlled by setDescriptionWidthPercent(float)