Stay organized with collections
Save and categorize content based on your preferences.
public
static
abstract
class
ExtendedFloatingActionButton.OnChangedCallback
extends Object
java.lang.Object
|
↳ |
com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback
|
Callback to be invoked when the visibility or the state of an ExtendedFloatingActionButton
changes.
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
OnChangedCallback
public OnChangedCallback ()
Public methods
public void onExtended (ExtendedFloatingActionButton extendedFab)
Called when a ExtendedFloatingActionButton has been extended
to show the icon and the
text.
Parameters |
extendedFab |
ExtendedFloatingActionButton : the ExtendedFloatingActionButton that was extended.
|
public void onHidden (ExtendedFloatingActionButton extendedFab)
Called when a ExtendedFloatingActionButton has been hidden
.
Parameters |
extendedFab |
ExtendedFloatingActionButton : the ExtendedFloatingActionButton that was hidden.
|
public void onShown (ExtendedFloatingActionButton extendedFab)
Called when a ExtendedFloatingActionButton has been shown
.
Parameters |
extendedFab |
ExtendedFloatingActionButton : the FloatingActionButton that was shown.
|
public void onShrunken (ExtendedFloatingActionButton extendedFab)
Called when a ExtendedFloatingActionButton has been shrunken
to show just the icon.
Parameters |
extendedFab |
ExtendedFloatingActionButton : the ExtendedFloatingActionButton that was shrunk.
|
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,["# ExtendedFloatingActionButton.OnChangedCallback\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nExtendedFloatingActionButton.OnChangedCallback\n==============================================\n\n\n`\npublic\nstatic\n\nabstract\nclass\nExtendedFloatingActionButton.OnChangedCallback\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.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback to be invoked when the visibility or the state of an ExtendedFloatingActionButton\nchanges.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[OnChangedCallback](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton.OnChangedCallback#OnChangedCallback())`() ` |\n\n| ### Public methods ||\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[onExtended](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton.OnChangedCallback#onExtended(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton))`(`[ExtendedFloatingActionButton](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton)` extendedFab) ` Called when a ExtendedFloatingActionButton has been [extended](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#extend(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)) to show the icon and the text. |\n| ` void` | ` `[onHidden](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton.OnChangedCallback#onHidden(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton))`(`[ExtendedFloatingActionButton](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton)` extendedFab) ` Called when a ExtendedFloatingActionButton has been [hidden](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#hide(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)). |\n| ` void` | ` `[onShown](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton.OnChangedCallback#onShown(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton))`(`[ExtendedFloatingActionButton](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton)` extendedFab) ` Called when a ExtendedFloatingActionButton has been [shown](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#show(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)). |\n| ` void` | ` `[onShrunken](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton.OnChangedCallback#onShrunken(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton))`(`[ExtendedFloatingActionButton](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton)` extendedFab) ` Called when a ExtendedFloatingActionButton has been [shrunken](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#shrink(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)) to show just the icon. |\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### OnChangedCallback\n\n```\npublic OnChangedCallback ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### onExtended\n\n```\npublic void onExtended (ExtendedFloatingActionButton extendedFab)\n```\n\nCalled when a ExtendedFloatingActionButton has been [extended](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#extend(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)) to show the icon and the\ntext.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|--------------------------------------------------------------------------------------------|\n| `extendedFab` | `ExtendedFloatingActionButton`: the ExtendedFloatingActionButton that was extended. \u003cbr /\u003e |\n\n### onHidden\n\n```\npublic void onHidden (ExtendedFloatingActionButton extendedFab)\n```\n\nCalled when a ExtendedFloatingActionButton has been [hidden](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#hide(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------------------|\n| `extendedFab` | `ExtendedFloatingActionButton`: the ExtendedFloatingActionButton that was hidden. \u003cbr /\u003e |\n\n### onShown\n\n```\npublic void onShown (ExtendedFloatingActionButton extendedFab)\n```\n\nCalled when a ExtendedFloatingActionButton has been [shown](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#show(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|---------------------------------------------------------------------------------|\n| `extendedFab` | `ExtendedFloatingActionButton`: the FloatingActionButton that was shown. \u003cbr /\u003e |\n\n### onShrunken\n\n```\npublic void onShrunken (ExtendedFloatingActionButton extendedFab)\n```\n\nCalled when a ExtendedFloatingActionButton has been [shrunken](/reference/com/google/android/material/floatingactionbutton/ExtendedFloatingActionButton#shrink(com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.OnChangedCallback)) to show just the icon.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------------------|\n| `extendedFab` | `ExtendedFloatingActionButton`: the ExtendedFloatingActionButton that was shrunk. \u003cbr /\u003e |"]]