ExpandableWidgetHelper


Kotlin |Java

public final class ExpandableWidgetHelper 


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

Summary

Public fields

int

Public constructors

Call this from the constructor.

Public methods

int

Call this from getExpandedComponentIdHint .

boolean

Call this from isExpanded .

void

Call this from onRestoreInstanceState.

Bundle

Call this from onSaveInstanceState.

boolean
setExpanded(boolean expanded)

Call this from setExpanded .

void
setExpandedComponentIdHint(int expandedComponentIdHint)

Call this from setExpandedComponentIdHint .

Public fields

expandedComponentIdHint

public int expandedComponentIdHint 

Public constructors

ExpandableWidgetHelper

public ExpandableWidgetHelper(ExpandableWidget widget)

Call this from the constructor.

Public methods

getExpandedComponentIdHint

public int getExpandedComponentIdHint()

Call this from getExpandedComponentIdHint .

isExpanded

public boolean isExpanded()

Call this from isExpanded .

onRestoreInstanceState

public void onRestoreInstanceState(Bundle state)

Call this from onRestoreInstanceState.

onSaveInstanceState

public Bundle onSaveInstanceState()

Call this from onSaveInstanceState.

setExpanded

public boolean setExpanded(boolean expanded)

Call this from setExpanded .

setExpandedComponentIdHint

public void setExpandedComponentIdHint(int expandedComponentIdHint)

Call this from setExpandedComponentIdHint .

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年05月14日 UTC.