Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

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 onRestoreInstanceState(Parcelable).

Bundle onSaveInstanceState()

Call this from onSaveInstanceState().

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 onRestoreInstanceState(Parcelable).

Parameters
state Bundle

onSaveInstanceState

Bundle onSaveInstanceState ()

Call this from onSaveInstanceState().

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