getHeightMode

open fun getHeightMode(): Int(source)

Return the height measurement spec mode that is currently relevant to the LayoutManager.

This value is set only if the LayoutManager opts into the AutoMeasure api via setAutoMeasureEnabled.

When RecyclerView is running a layout, this value is always set to EXACTLY even if it was measured with a different spec mode.

Return

Height measure spec mode

See also