Stay organized with collections
Save and categorize content based on your preferences.
ContentViewCallback
public
interface
ContentViewCallback
com.google.android.material.snackbar.ContentViewCallback
|
Known indirect subclasses
|
Interface that defines the behavior of the main content of a transient bottom bar.
Summary
Public methods |
abstract
void
|
animateContentIn(int delay, int duration)
Animates the content of the transient bottom bar in.
|
abstract
void
|
animateContentOut(int delay, int duration)
Animates the content of the transient bottom bar out.
|
Public methods
animateContentIn
public abstract void animateContentIn (int delay,
int duration)
Animates the content of the transient bottom bar in.
Parameters |
delay |
int : Animation delay. |
duration |
int : Animation duration.
|
animateContentOut
public abstract void animateContentOut (int delay,
int duration)
Animates the content of the transient bottom bar out.
Parameters |
delay |
int : Animation delay. |
duration |
int : Animation duration.
|
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,["# ContentViewCallback\n\nSummary: [Methods](#pubmethods) \n\nContentViewCallback\n===================\n\n\n`\npublic\n\n\ninterface\nContentViewCallback\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------|\n| com.google.android.material.snackbar.ContentViewCallback |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [BaseTransientBottomBar.ContentViewCallback](/reference/com/google/android/material/snackbar/BaseTransientBottomBar.ContentViewCallback) |------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------| | [BaseTransientBottomBar.ContentViewCallback](/reference/com/google/android/material/snackbar/BaseTransientBottomBar.ContentViewCallback) | *This interface is deprecated. Use [ContentViewCallback](/reference/com/google/android/material/snackbar/ContentViewCallback) instead.* | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface that defines the behavior of the main content of a transient bottom bar.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[animateContentIn](/reference/com/google/android/material/snackbar/ContentViewCallback#animateContentIn(int,%20int))`(int delay, int duration) ` Animates the content of the transient bottom bar in. |\n| ` abstract void` | ` `[animateContentOut](/reference/com/google/android/material/snackbar/ContentViewCallback#animateContentOut(int,%20int))`(int delay, int duration) ` Animates the content of the transient bottom bar out. |\n\nPublic methods\n--------------\n\n### animateContentIn\n\n```\npublic abstract void animateContentIn (int delay, \n int duration)\n```\n\nAnimates the content of the transient bottom bar in.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-----------------------------------|\n| `delay` | `int`: Animation delay. \u003cbr /\u003e |\n| `duration` | `int`: Animation duration. \u003cbr /\u003e |\n\n### animateContentOut\n\n```\npublic abstract void animateContentOut (int delay, \n int duration)\n```\n\nAnimates the content of the transient bottom bar out.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-----------------------------------|\n| `delay` | `int`: Animation delay. \u003cbr /\u003e |\n| `duration` | `int`: Animation duration. \u003cbr /\u003e |"]]