getHeight

open fun getHeight(): Int(source)

Returns the height that is currently relevant to the LayoutManager.

This value is usually equal to the laid out height of the RecyclerView but may reflect the current android.view.View.MeasureSpec height if the LayoutManager is using AutoMeasure and the RecyclerView is in the process of measuring. The LayoutManager must always use this method to retrieve the height relevant to it at any given time.

Return

Height in pixels