public static class

ContactCell.LayoutParams

extends AbstractEntityCell.GroupLayoutParams
java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ com.sap.cloud.mobile.fiori.object.AbstractEntityCell.GroupLayoutParams
         ↳ com.sap.cloud.mobile.fiori.contact.ContactCell.LayoutParams
Known Direct Subclasses

Class Overview

Layout information for child views of an ContactCell.

Child view added in XML could optionally have a layout_contact_group parameter to tell the parent ContactCell how to layout this child view. Right now only #LAYOUT_GROUP_ACTION is supported.

Summary

Nested Classes
@interface ContactCell.LayoutParams.LayoutGroup  
XML Attributes
Attribute Name Related Method Description
com.sap.cloud.mobile.fiori:layout_contact_group getDefaultGroup() Specifies which layout group the child view should belong. 
Constants
int LAYOUT_GROUP_ACTION Assigns child view to tags layout group.
[Expand]
Inherited Constants
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell.GroupLayoutParams
From class android.view.ViewGroup.LayoutParams
[Expand]
Inherited Fields
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
Public Constructors
LayoutParams(Context c, AttributeSet attrs)
LayoutParams(int width, int height)
Creates a new set of layout parameters with the specified width and height.
LayoutParams(ViewGroup.LayoutParams p)
LayoutParams(ViewGroup.MarginLayoutParams source)
LayoutParams(AbstractEntityCell.GroupLayoutParams source)
Protected Methods
int getDefaultGroup()
Default group of ContactCell is LAYOUT_GROUP_ACTION
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell.GroupLayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

XML Attributes

com.sap.cloud.mobile.fiori:layout_contact_group

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

Must be one of the following constant values.

ConstantValueDescription
ACTION1Designates a view to show in ContactCell actions group. This is the default if not specified.
INTERNAL0Reserved for internal usage

Related Methods

Constants

public static final int LAYOUT_GROUP_ACTION

Assigns child view to tags layout group. Appears in the additional info part.

Constant Value: 1 (0x00000001)

Public Constructors

public LayoutParams (Context c, AttributeSet attrs)

public LayoutParams (int width, int height)

Creates a new set of layout parameters with the specified width and height.

Parameters
width the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
height the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

public LayoutParams (ViewGroup.LayoutParams p)

public LayoutParams (ViewGroup.MarginLayoutParams source)

public LayoutParams (AbstractEntityCell.GroupLayoutParams source)

Protected Methods

protected int getDefaultGroup ()

Default group of ContactCell is LAYOUT_GROUP_ACTION