Stay organized with collections
Save and categorize content based on your preferences.
GridPageOptions.BackgroundListener
public
static
interface
GridPageOptions.BackgroundListener
android.support.wearable.view.GridPageOptions.BackgroundListener
|
This interface is deprecated.
starting with Android Wear 2.0 we no longer encourage bi-directional spacial models
for apps. If you are looking to implement vertical paging pattern, consider using the
SnapHelper
and a RecyclerView
instead.
Interface for communicating background changes to a listener.
Summary
Public methods
notifyBackgroundChanged
public abstract void notifyBackgroundChanged ()
Notifies the container about a change to the background. When necessary, GridPageOptions.getBackground()
will be called again for this page to update the background.
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,["# GridPageOptions.BackgroundListener\n==================================\n\n\n`\npublic\nstatic\n\n\ninterface\nGridPageOptions.BackgroundListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------------|\n| android.support.wearable.view.GridPageOptions.BackgroundListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface is deprecated.** \n\nstarting with Android Wear 2.0 we no longer encourage bi-directional spacial models\nfor apps. If you are looking to implement vertical paging pattern, consider using the\n[SnapHelper](../../../../../reference/android/support/v7/widget/SnapHelper.html) and a [RecyclerView](../../../../../reference/android/support/v7/widget/RecyclerView.html) instead.\n\nInterface for communicating background changes to a listener.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[notifyBackgroundChanged](../../../../../reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html#notifyBackgroundChanged())`() ` Notifies the container about a change to the background. |\n\nPublic methods\n--------------\n\n### notifyBackgroundChanged\n\n```\npublic abstract void notifyBackgroundChanged ()\n```\n\nNotifies the container about a change to the background. When necessary, [GridPageOptions.getBackground()](../../../../../reference/android/support/wearable/view/GridPageOptions.html#getBackground()) will be called again for this page to update the background.\n\n\u003cbr /\u003e"]]