Stay organized with collections
Save and categorize content based on your preferences.
public
final
class
ExpandableWidgetHelper
extends Object
java.lang.Object
|
↳ |
com.google.android.material.expandable.ExpandableWidgetHelper
|
ExpandableWidgetHelper is a helper class for writing custom ExpandableWidget
s and ExpandableTransformationWidget
. Please see the interface documentation when implementing your
custom class.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
public ExpandableWidgetHelper (ExpandableWidget widget)
Call this from the constructor.
Parameters |
widget |
ExpandableWidget |
Public methods
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 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ExpandableWidgetHelper\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nExpandableWidgetHelper\n======================\n\n\n`\npublic\n\nfinal\n\nclass\nExpandableWidgetHelper\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.google.android.material.expandable.ExpandableWidgetHelper |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nExpandableWidgetHelper is a helper class for writing custom [ExpandableWidget](/reference/com/google/android/material/expandable/ExpandableWidget)s and [ExpandableTransformationWidget](/reference/com/google/android/material/expandable/ExpandableTransformationWidget). Please see the interface documentation when implementing your\ncustom class.\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ExpandableWidgetHelper](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#ExpandableWidgetHelper(com.google.android.material.expandable.ExpandableWidget))`(`[ExpandableWidget](/reference/com/google/android/material/expandable/ExpandableWidget)` widget) ` Call this from the constructor. |\n\n| ### Public methods ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getExpandedComponentIdHint](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#getExpandedComponentIdHint())`() ` Call this from [ExpandableTransformationWidget.getExpandedComponentIdHint()](/reference/com/google/android/material/expandable/ExpandableTransformationWidget#getExpandedComponentIdHint()). |\n| ` boolean` | ` `[isExpanded](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#isExpanded())`() ` Call this from [ExpandableWidget.isExpanded()](/reference/com/google/android/material/expandable/ExpandableWidget#isExpanded()). |\n| ` void` | ` `[onRestoreInstanceState](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#onRestoreInstanceState(android.os.Bundle))`(Bundle state) ` Call this from [View.onRestoreInstanceState(Parcelable)](/reference/android/view/View#onRestoreInstanceState(android.os.Parcelable)). |\n| ` Bundle` | ` `[onSaveInstanceState](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#onSaveInstanceState())`() ` Call this from [View.onSaveInstanceState()](/reference/android/view/View#onSaveInstanceState()). |\n| ` boolean` | ` `[setExpanded](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#setExpanded(boolean))`(boolean expanded) ` Call this from [ExpandableWidget.setExpanded(boolean)](/reference/com/google/android/material/expandable/ExpandableWidget#setExpanded(boolean)). |\n| ` void` | ` `[setExpandedComponentIdHint](/reference/com/google/android/material/expandable/ExpandableWidgetHelper#setExpandedComponentIdHint(int))`(int expandedComponentIdHint) ` Call this from [ExpandableTransformationWidget.setExpandedComponentIdHint(int)](/reference/com/google/android/material/expandable/ExpandableTransformationWidget#setExpandedComponentIdHint(int)). |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic constructors\n-------------------\n\n### ExpandableWidgetHelper\n\n```\npublic ExpandableWidgetHelper (ExpandableWidget widget)\n```\n\nCall this from the constructor.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|---------------------------|\n| `widget` | `ExpandableWidget` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getExpandedComponentIdHint\n\n```\npublic int getExpandedComponentIdHint ()\n```\n\nCall this from [ExpandableTransformationWidget.getExpandedComponentIdHint()](/reference/com/google/android/material/expandable/ExpandableTransformationWidget#getExpandedComponentIdHint()).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### isExpanded\n\n```\npublic boolean isExpanded ()\n```\n\nCall this from [ExpandableWidget.isExpanded()](/reference/com/google/android/material/expandable/ExpandableWidget#isExpanded()).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### onRestoreInstanceState\n\n```\npublic void onRestoreInstanceState (Bundle state)\n```\n\nCall this from [View.onRestoreInstanceState(Parcelable)](/reference/android/view/View#onRestoreInstanceState(android.os.Parcelable)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `state` | `Bundle` \u003cbr /\u003e |\n\n### onSaveInstanceState\n\n```\npublic Bundle onSaveInstanceState ()\n```\n\nCall this from [View.onSaveInstanceState()](/reference/android/view/View#onSaveInstanceState()).\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `Bundle` | \u003cbr /\u003e |\n\n### setExpanded\n\n```\npublic boolean setExpanded (boolean expanded)\n```\n\nCall this from [ExpandableWidget.setExpanded(boolean)](/reference/com/google/android/material/expandable/ExpandableWidget#setExpanded(boolean)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|------------------|\n| `expanded` | `boolean` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### setExpandedComponentIdHint\n\n```\npublic void setExpandedComponentIdHint (int expandedComponentIdHint)\n```\n\nCall this from [ExpandableTransformationWidget.setExpandedComponentIdHint(int)](/reference/com/google/android/material/expandable/ExpandableTransformationWidget#setExpandedComponentIdHint(int)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------------|--------------|\n| `expandedComponentIdHint` | `int` \u003cbr /\u003e |"]]