ExpandableWidgetHelper

public final class ExpandableWidgetHelper
extends Object

java.lang.Object
   ↳ com.google.android.material.expandable.ExpandableWidgetHelper


ExpandableWidgetHelper is a helper class for writing custom ExpandableWidgets and ExpandableTransformationWidget. Please see the interface documentation when implementing your custom class.

Summary

Public constructors

ExpandableWidgetHelper(ExpandableWidget widget)

Call this from the constructor.

Public methods

int getExpandedComponentIdHint()

Call this from getExpandedComponentIdHint().

boolean isExpanded()

Call this from isExpanded().

void onRestoreInstanceState(Bundle state)

Call this from View.

Bundle onSaveInstanceState()

Call this from View.

boolean setExpanded(boolean expanded)

Call this from setExpanded(boolean).

void setExpandedComponentIdHint(int expandedComponentIdHint)

Call this from setExpandedComponentIdHint(int).

Inherited methods

From class java.lang.Object

Public constructors

ExpandableWidgetHelper

ExpandableWidgetHelper (ExpandableWidget widget)

Call this from the constructor.

Parameters
widget ExpandableWidget

Public methods

getExpandedComponentIdHint

int getExpandedComponentIdHint ()

Call this from getExpandedComponentIdHint().

Returns
int

isExpanded

boolean isExpanded ()

Call this from isExpanded().

Returns
boolean

onRestoreInstanceState

void onRestoreInstanceState (Bundle state)

Call this from View.

Parameters
state Bundle

onSaveInstanceState

Bundle onSaveInstanceState ()

Call this from View.

Returns
Bundle

setExpanded

boolean setExpanded (boolean expanded)

Call this from setExpanded(boolean).

Parameters
expanded boolean

Returns
boolean

setExpandedComponentIdHint

void setExpandedComponentIdHint (int expandedComponentIdHint)

Call this from setExpandedComponentIdHint(int).

Parameters
expandedComponentIdHint int