# WrapContentLinearLayoutManager

public class WrapContentLinearLayoutManager

Created by luck on 2017/12/4.

RecyclerView Bug：IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案 只是把这个异常捕获了，不让他奔溃了，这个问题的终极解决方案还是得让google去修复。

## Constructors

WrapContentLinearLayoutManager
Link copied to clipboard
public void WrapContentLinearLayoutManager(Context context)
public void WrapContentLinearLayoutManager(Context context, int orientation, boolean reverseLayout)
public void WrapContentLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

## Functions

onLayoutChildren
Link copied to clipboard
public void onLayoutChildren(Recycler recycler, State state)