Stay organized with collections
Save and categorize content based on your preferences.
public
interface
ExpandableTransformationWidget
implements
ExpandableWidget
com.google.android.material.expandable.ExpandableTransformationWidget
|
Known indirect subclasses
|
An ExpandableWidget that visually transforms into another component when expanded.
Summary
Public methods |
abstract
int
|
getExpandedComponentIdHint()
Returns the expanded component id hint.
|
abstract
void
|
setExpandedComponentIdHint(int expandedComponentIdHint)
Sets the expanded component id hint, which may be used by a Behavior to determine whether it
should handle this widget's state change.
|
Public methods
getExpandedComponentIdHint
public abstract int getExpandedComponentIdHint ()
Returns the expanded component id hint.
setExpandedComponentIdHint
public abstract void setExpandedComponentIdHint (int expandedComponentIdHint)
Sets the expanded component id hint, which may be used by a Behavior to determine whether it
should handle this widget's state change.
Parameters |
expandedComponentIdHint |
int |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ExpandableTransformationWidget\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nExpandableTransformationWidget\n==============================\n\n\n`\npublic\n\n\ninterface\nExpandableTransformationWidget\n`\n\n\n`\n\n\nimplements\n\n`[ExpandableWidget](/reference/com/google/android/material/expandable/ExpandableWidget)`\n\n\n`\n\n|-----------------------------------------------------------------------|\n| com.google.android.material.expandable.ExpandableTransformationWidget |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [FloatingActionButton](/reference/com/google/android/material/floatingactionbutton/FloatingActionButton) |----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| | [FloatingActionButton](/reference/com/google/android/material/floatingactionbutton/FloatingActionButton) | Floating action buttons are used for a special type of promoted action. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn ExpandableWidget that visually transforms into another component when expanded.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract int` | ` `[getExpandedComponentIdHint](/reference/com/google/android/material/expandable/ExpandableTransformationWidget#getExpandedComponentIdHint())`() ` Returns the expanded component id hint. |\n| ` abstract void` | ` `[setExpandedComponentIdHint](/reference/com/google/android/material/expandable/ExpandableTransformationWidget#setExpandedComponentIdHint(int))`(int expandedComponentIdHint) ` Sets the expanded component id hint, which may be used by a Behavior to determine whether it should handle this widget's state change. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` `[com.google.android.material.expandable.ExpandableWidget](/reference/com/google/android/material/expandable/ExpandableWidget)` ` |---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean` | ` `[isExpanded](/reference/com/google/android/material/expandable/ExpandableWidget#isExpanded())`() ` Returns whether this widget is expanded. | | ` abstract boolean` | ` `[setExpanded](/reference/com/google/android/material/expandable/ExpandableWidget#setExpanded(boolean))`(boolean expanded) ` Sets the expanded state on this widget. | ||\n\nPublic methods\n--------------\n\n### getExpandedComponentIdHint\n\n```\npublic abstract int getExpandedComponentIdHint ()\n```\n\nReturns the expanded component id hint.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### setExpandedComponentIdHint\n\n```\npublic abstract void setExpandedComponentIdHint (int expandedComponentIdHint)\n```\n\nSets the expanded component id hint, which may be used by a Behavior to determine whether it\nshould handle this widget's state change.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------------|--------------|\n| `expandedComponentIdHint` | `int` \u003cbr /\u003e |"]]