WearableLinearLayoutManager.LayoutCallback

public abstract class WearableLinearLayoutManager.LayoutCallback

Known direct subclasses
CurvingLayoutCallback

An implementation of the WearableLinearLayoutManager.LayoutCallback aligning the children of the associated WearableRecyclerView along a pre-defined vertical curve.


Callback for interacting with layout passes.

Summary

Public methods

abstract @NonNull void

Override this method to implement custom child layout behavior on scroll.

Public methods

onLayoutFinished

@NonNull
public abstract void onLayoutFinished(@NonNull View child, @NonNull RecyclerView parent)

Override this method to implement custom child layout behavior on scroll. It is called at the end of each layout pass of the view (including scrolling) and enables you to modify any property of the child view. Examples include scaling the children based on their distance from the center of the parent, or changing the translation of the children to create an illusion of the path they are moving along.

Parameters
@NonNull View child

the current child to be affected.

@NonNull RecyclerView parent

the RecyclerView parent that this class is attached to.