AppBarLayout.ChildScrollEffect

public abstract class AppBarLayout.ChildScrollEffect

Known direct subclasses
AppBarLayout.CompressChildScrollEffect

A class which handles updating an AppBarLayout child, if marked with the app:layout_scrollEffectcompress, at each step in the AppBarLayout's offset animation.


An effect class that should be implemented and used by AppBarLayout children to be given effects when the AppBarLayout's offset changes.

Summary

Public constructors

Public methods

abstract void
onOffsetChanged(AppBarLayout appBarLayout, View child, float offset)

Called each time the AppBarLayout's offset changes.

Public constructors

ChildScrollEffect

public ChildScrollEffect()

Public methods

onOffsetChanged

public abstract void onOffsetChanged(AppBarLayout appBarLayout, View child, float offset)

Called each time the AppBarLayout's offset changes. Update the child with any desired effects.

Parameters
AppBarLayout appBarLayout

The parent AppBarLayout

View child

The View to be given any desired effect