LayoutManagerOverrideParams

LayoutParams that override the LayoutManager.

If you set LayoutParams on a LithoView that implements this interface, the view will completely ignore the layout specs given to it by its LayoutManager and use these specs instead. To use, set the LayoutParams height and width to WRAP_CONTENT and then provide a width and height measure spec though this interface.

This is helpful for implementing AT_MOST support since Android LayoutManagers don't support an AT_MOST concept as part of ViewGroup.LayoutParams's special values.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun getHeightMeasureSpec(): Int
Link copied to clipboard
abstract fun getWidthMeasureSpec(): Int
Link copied to clipboard