leanback/src/main/java/androidx/leanback/app/DetailsSupportFragmentBackgroundController.java
public void enableParallax() {
        int offset = mParallaxDrawableMaxOffset;
        if (offset == 0) {
            offset = mFragment.getContext().getResources()
                    .getDimensionPixelSize(R.dimen.lb_details_cover_drawable_parallax_movement);
        }
        Drawable coverDrawable = new FitWidthBitmapDrawable();
        ColorDrawable colorDrawable = new ColorDrawable();
        enableParallax(coverDrawable, colorDrawable,
                new ParallaxTarget.PropertyValuesHolderTarget(
                        coverDrawable,
                        PropertyValuesHolder.ofInt(FitWidthBitmapDrawable.PROPERTY_VERTICAL_OFFSET,
                                0, -offset)
                ));
    }
/**
     * Enables default parallax background using a {@link FitWidthBitmapDrawable} as cover drawable
     * and {@link ColorDrawable} as bottom drawable. A vertical parallax movement will be applied
     * to the FitWidthBitmapDrawable. App may use {@link #setSolidColor(int)} and
     * {@link #setCoverBitmap(Bitmap)} to change the content of bottom drawable and cover drawable.
     * This method must be called before {@link #setupVideoPlayback(PlaybackGlue)}.
     *
     * @see #setCoverBitmap(Bitmap)
     * @see #setSolidColor(int)
     * @throws IllegalStateException If {@link #setupVideoPlayback(PlaybackGlue)} was called.
     */
Enables default parallax background using a  FitWidthBitmapDrawable as cover drawable
and  ColorDrawable as bottom drawable. A vertical parallax movement will be applied
to the FitWidthBitmapDrawable. App may use  #setSolidColor(int) and
#setCoverBitmap(Bitmap) to change the content of bottom drawable and cover drawable.
This method must be called before  #setupVideoPlayback(PlaybackGlue).


Enables default parallax background using a FitWidthBitmapDrawable as cover drawable and ColorDrawable as bottom drawable . A vertical parallax movement will be applied to the FitWidthBitmapDrawable . App may use #setSolidColor ( int ) and #setCoverBitmap ( Bitmap ) to change the content of bottom drawable and cover drawable . This method must be called before #setupVideoPlayback ( PlaybackGlue ) .
public void enableParallax() {
        int offset = mParallaxDrawableMaxOffset;
        if (offset == 0) {
            offset = mFragment.getContext().getResources()
                    .getDimensionPixelSize(R.dimen.lb_details_cover_drawable_parallax_movement);
        }
        Drawable coverDrawable = new FitWidthBitmapDrawable();
        ColorDrawable colorDrawable = new ColorDrawable();
        enableParallax(coverDrawable, colorDrawable,
                new ParallaxTarget.PropertyValuesHolderTarget(
                        coverDrawable,
                        PropertyValuesHolder.ofInt(FitWidthBitmapDrawable.PROPERTY_VERTICAL_OFFSET,
                                0, -offset)
                ));
    }
public void enableParallax ( ) { int offset = mParallaxDrawableMaxOffset ; if ( offset == 0 ) { offset = mFragment . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . lb_details_cover_drawable_parallax_movement ) ; } Drawable coverDrawable = new FitWidthBitmapDrawable ( ) ; ColorDrawable colorDrawable = new ColorDrawable ( ) ; enableParallax ( coverDrawable , colorDrawable , new ParallaxTarget . PropertyValuesHolderTarget ( coverDrawable , PropertyValuesHolder . ofInt ( FitWidthBitmapDrawable . PROPERTY_VERTICAL_OFFSET , 0 , - offset ) ) ) ; }
Enables default parallax background using a {@link FitWidthBitmapDrawable} as cover drawable
 and {@link ColorDrawable} as bottom drawable.
Enables default parallax background using a { @link FitWidthBitmapDrawable } as cover drawable and { @link ColorDrawable } as bottom drawable .