GridPageOptions

public interface GridPageOptions

android.support.wearable.view.GridPageOptions


GridViewPager中的Fragment的可选接口,它提供了额外的可配置选项。

Summary

Nested classes

interface GridPageOptions.BackgroundListener

用于将背景更改传送给侦听器的接口。

Public methods

abstract Drawable getBackground()

为此片段表示的页面提供背景。

abstract void setBackgroundListener(GridPageOptions.BackgroundListener listener)

提供用于通知容器关于背景更改的侦听器。

Public methods

getBackground

Drawable getBackground ()

为此片段表示的页面提供背景。 如果提供,返回值BACKGROUND_NONE将默认为该行的背景。

Returns
Drawable

也可以看看:

setBackgroundListener

void setBackgroundListener (GridPageOptions.BackgroundListener listener)

提供用于通知容器关于背景更改的侦听器。

Parameters
listener GridPageOptions.BackgroundListener: a listener used to notify about background changes