GridPageOptions
public
interface
GridPageOptions
| android.support.wearable.view.GridPageOptions |
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.
An optional interface for a Fragment within a GridViewPager which provides additional configurable options.
Summary
Nested classes | |
|---|---|
interface |
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
|
Public methods | |
|---|---|
abstract
Drawable
|
getBackground()
Provides a background for the page represented by this Fragment. |
abstract
void
|
setBackgroundListener(GridPageOptions.BackgroundListener listener)
Provides a listener used to notify the container about a change to the background. |
Public methods
getBackground
public abstract Drawable getBackground ()
Provides a background for the page represented by this Fragment. A return value of GridPagerAdapter.BACKGROUND_NONE will default to the background for the row, if supplied.
| Returns | |
|---|---|
Drawable |
|
setBackgroundListener
public abstract void setBackgroundListener (GridPageOptions.BackgroundListener listener)
Provides a listener used to notify the container about a change to the background.
| Parameters | |
|---|---|
listener |
GridPageOptions.BackgroundListener: a listener used to notify about background changes
|
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.