AppBarLayout.LiftOnScrollProgressListener

public abstract class AppBarLayout.LiftOnScrollProgressListener


Definition for a callback to be invoked when the lift on scroll progress has changed.

Summary

Public constructors

Public methods

abstract void
onUpdate(float elevation, int backgroundColor, float progress)

Update method called when the lift progress is updated.

Public constructors

LiftOnScrollProgressListener

public LiftOnScrollProgressListener()

Public methods

onUpdate

public abstract void onUpdate(float elevation, int backgroundColor, float progress)

Update method called when the lift progress is updated.

Parameters
float elevation

the elevation of the AppBarLayout

int backgroundColor

the background color of the AppBarLayout

float progress

the progress of the lift animation; 0 is unlifted, 1 is lifted.