setMeasuredDimension
Sets the measured dimensions from the given bounding box of the children and the measurement specs that were passed into onMeasure. It is only called if a LayoutManager returns true
from isAutoMeasureEnabled and it is called after the RecyclerView calls onLayoutChildren in the execution of onMeasure.
This method must call setMeasuredDimension.
The default implementation adds the RecyclerView's padding to the given bounding box then caps the value to be within the given measurement specs.
Parameters
childrenBounds
The bounding box of all children
wSpec
The widthMeasureSpec that was passed into the RecyclerView.
hSpec
The heightMeasureSpec that was passed into the RecyclerView.
See also
Set the measured dimensions of the host RecyclerView.
Parameters
widthSize
Measured width
heightSize
Measured height