Stay organized with collections
Save and categorize content based on your preferences.
Advanceable
public
interface
Advanceable
android.widget.Advanceable
|
Known indirect subclasses
|
This interface can be implemented by any collection-type view which has a notion of
progressing through its set of children. The interface exists to give AppWidgetHosts a way of
taking responsibility for automatically advancing such collections.
Summary
Public methods |
abstract
void
|
advance()
Advances this collection, eg.
|
abstract
void
|
fyiWillBeAdvancedByHostKThx()
Called by the AppWidgetHost once before it begins to call advance(), allowing the
collection to do any required setup.
|
Public methods
advance
public abstract void advance ()
Advances this collection, eg. shows the next view.
fyiWillBeAdvancedByHostKThx
public abstract void fyiWillBeAdvancedByHostKThx ()
Called by the AppWidgetHost once before it begins to call advance(), allowing the
collection to do any required setup.
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,["# Advanceable\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nAdvanceable\n===========\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/Advanceable \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nAdvanceable\n`\n\n\n`\n\n\n`\n\n|----------------------------|\n| android.widget.Advanceable |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [AdapterViewAnimator](/reference/android/widget/AdapterViewAnimator), [AdapterViewFlipper](/reference/android/widget/AdapterViewFlipper), [StackView](/reference/android/widget/StackView) |----------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [AdapterViewAnimator](/reference/android/widget/AdapterViewAnimator) | Base class for a [AdapterView](/reference/android/widget/AdapterView) that will perform animations when switching between its views. | | [AdapterViewFlipper](/reference/android/widget/AdapterViewFlipper) | Simple [ViewAnimator](/reference/android/widget/ViewAnimator) that will animate between two or more views that have been added to it. | | [StackView](/reference/android/widget/StackView) | | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThis interface can be implemented by any collection-type view which has a notion of\nprogressing through its set of children. The interface exists to give AppWidgetHosts a way of\ntaking responsibility for automatically advancing such collections.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[advance](/reference/android/widget/Advanceable#advance())`() ` Advances this collection, eg. |\n| ` abstract void` | ` `[fyiWillBeAdvancedByHostKThx](/reference/android/widget/Advanceable#fyiWillBeAdvancedByHostKThx())`() ` Called by the AppWidgetHost once before it begins to call advance(), allowing the collection to do any required setup. |\n\nPublic methods\n--------------\n\n### advance\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void advance ()\n```\n\nAdvances this collection, eg. shows the next view.\n\n\u003cbr /\u003e\n\n### fyiWillBeAdvancedByHostKThx\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void fyiWillBeAdvancedByHostKThx ()\n```\n\nCalled by the AppWidgetHost once before it begins to call advance(), allowing the\ncollection to do any required setup.\n\n\u003cbr /\u003e"]]