public class

HierarchyAccessoryView

extends LinearLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.sap.cloud.mobile.fiori.hierarchy.HierarchyAccessoryView

Class Overview

HierarchyAccessoryView is a sub part of HierarchyObjectCell and contains HierarchyAccessory icon and a TextView. This view as part of HierarchyObjectCell allows users of the HierarchyView to dig deeper in the hierarchy using the accessory icon.

Summary

[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
HierarchyAccessoryView(Context context)
HierarchyAccessoryView(Context context, AttributeSet attrs)
HierarchyAccessoryView(Context context, AttributeSet attrs, int defStyleAttr)
HierarchyAccessoryView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void setAccessoryIcon(int icon)
Sets the drawable as the content of the accessory icon
void setAccessoryIcon(Uri icon)
Sets the accessory icon to the specified Uri.
void setAccessoryIcon(Drawable icon)
Sets the drawable as the content of the accessory icon
void setAccessoryText(int text)
Sets the text to be displayed using a string resource identifier.
void setAccessoryText(CharSequence text)
Sets the text to be displayed.
void setSelected(boolean selected)
[Expand]
Inherited Methods
From class android.widget.LinearLayout
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

Public Constructors

public HierarchyAccessoryView (Context context)

public HierarchyAccessoryView (Context context, AttributeSet attrs)

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

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

Public Methods

public void setAccessoryIcon (int icon)

Sets the drawable as the content of the accessory icon

Parameters
icon the Drawable resource to set, or null to clear the content

public void setAccessoryIcon (Uri icon)

Sets the accessory icon to the specified Uri.

Parameters
icon Uri

public void setAccessoryIcon (Drawable icon)

Sets the drawable as the content of the accessory icon

Parameters
icon the Drawable to set, or null to clear the content

public void setAccessoryText (int text)

Sets the text to be displayed using a string resource identifier.

Parameters
text the resource identifier of the string resource to be displayed

public void setAccessoryText (CharSequence text)

Sets the text to be displayed. Ideally only 3 character wide CharSequence is recommended.

Parameters
text string to be displayed

public void setSelected (boolean selected)