The parallax background drawable is made of two parts: cover drawable (by default
FitWidthBitmapDrawable) above the details overview row and bottom drawable (by default
ColorDrawable) below the details overview row. While vertically scrolling rows, the size
of cover drawable and bottom drawable will be updated and the cover drawable will by default
perform a parallax shift using FitWidthBitmapDrawable.PROPERTY_VERTICAL_OFFSET.

setCoverBitmap

Convenient method to set Bitmap in cover drawable. If app is not using default
FitWidthBitmapDrawable, app should not use this method It's safe to call
setCoverBitmap() before calling enableParallax().

Parameters

bitmap

Bitmap: bitmap to set as cover.

setParallaxDrawableMaxOffset

public final void setParallaxDrawableMaxOffset (int offset)

Sets default parallax offset in pixels for bitmap moving vertically. This method must
be called before enableParallax().

setupVideoPlayback

Enable video playback and set proper PlaybackGlueHost. This method by default
creates a VideoSupportFragment and VideoSupportFragmentGlueHost to host the PlaybackGlue.
This method must be called after calling details Fragment super.onCreate(). This method
can be called multiple times to replace existing PlaybackGlue or calling
setupVideoPlayback(null) to clear. Note a typical PlaybackGlue subclass releases
resources in PlaybackGlue.onDetachedFromHost(), when the PlaybackGlue
subclass is not doing that, it's app's responsibility to release the resources.

Parameters

playbackGlue

PlaybackGlue: The new PlaybackGlue to set as background or null to clear existing one.

switchToRows

public final void switchToRows ()

Switch to rows fragment.

switchToVideo

public final void switchToVideo ()

Switch to video fragment, note that this method is not affected by result of
canNavigateToVideoSupportFragment(). If the method is called in DetailsSupportFragment.onCreate()
it will make video fragment to be initially focused once it is created.