Android 12 Developer Preview is here! Try it out, and give us your feedback!

OnLayoutCompletedListener

interface OnLayoutCompletedListener
androidx.leanback.widget.BaseGridView.OnLayoutCompletedListener

Interface for receiving notification when BaseGridView has completed a full layout calculation.

Summary

Public methods
abstract Unit

Called after a full layout calculation is finished.

Public methods

onLayoutCompleted

abstract fun onLayoutCompleted(@NonNull state: RecyclerView.State): Unit

Called after a full layout calculation is finished.

Parameters
state RecyclerView.State: Transient state of RecyclerView