getWidthMode

open fun getWidthMode(): Int(source)

Return the width 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

Width measure spec mode

See also