Skip to content

Most visited

Recently visited

navigation

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

Interface for communicating background changes to a listener. 

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

Drawable getBackground ()

Provides a background for the page represented by this Fragment. A return value of BACKGROUND_NONE will default to the background for the row, if supplied.

Returns
Drawable

See also:

setBackgroundListener

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)