makeSizeSpec
Creates a size specification based on the supplied size and mode.
The mode must always be one of the following:
com.facebook.litho.SizeSpec#UNSPECIFIED
com.facebook.litho.SizeSpec#EXACTLY
Note: On API level 17 and lower, makeMeasureSpec's implementation was such that the order of arguments did not matter and overflow in either value could impact the resulting MeasureSpec. android.widget.RelativeLayout was affected by this bug. Apps targeting API levels greater than 17 will get the fixed, more strict behavior.
Return
the size specification based on size and mode
Parameters
size
the size of the size specification
mode
the mode of the size specification