TransformationCallback

public interface TransformationCallback<T extends View>


Callback to be invoked when the view undergoes a transformation (e.g., translation or scale). This is particularly useful to react to animations applied to a view, such as the cutout of the com.google.android.material.bottomappbar.BottomAppBar reacting to the .

Summary

Public methods

abstract void

Called when the view has been scaled.

abstract void

Called when the view has been translated.

Public methods

onScaleChanged

abstract void onScaleChanged(T view)

Called when the view has been scaled.

Parameters
T view

the view that was scaled.

onTranslationChanged

abstract void onTranslationChanged(T view)

Called when the view has been translated.

Parameters
T view

the view that was translated.