VerticalScrollMode.SnapScrollMatchHeight

@RequiresApi(api = 3600001)
class VerticalScrollMode.SnapScrollMatchHeight : VerticalScrollMode


Items will snap into place and match the height of the parent view.

Summary

Public constructors

SnapScrollMatchHeight(initialChildHeight: Dp)

Public properties

Dp

How large to make a child.

Public constructors

SnapScrollMatchHeight

Added in 1.3.0-alpha01
SnapScrollMatchHeight(initialChildHeight: Dp)
Parameters
initialChildHeight: Dp

How large to make a child. This value is used before a measure pass has been run. The container will always try to make the child match its height. Pass in the intended height of the parent container here.

Public properties

initialChildHeight

val initialChildHeightDp

How large to make a child. This value is used before a measure pass has been run. The container will always try to make the child match its height. Pass in the intended height of the parent container here.