AppBarLayout.CompressChildScrollEffect

public class AppBarLayout.CompressChildScrollEffect extends AppBarLayout.ChildScrollEffect


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

Only a single AppBarLayout child should be given a compress effect.

Summary

Public constructors

Public methods

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

Called each time the AppBarLayout's offset changes.

Public constructors

CompressChildScrollEffect

public CompressChildScrollEffect()

Public methods

onOffsetChanged

public 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