WrapContentLinearLayoutManager

Created by luck on 2017/12/4.

RecyclerView Bug: IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter workaround. This simply catches the exception to prevent crashes. The ultimate fix needs to come from Google.

Constructors

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

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