public class WrapContentLinearLayoutManager
extends LinearLayoutManager
RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案 只是把这个异常捕获了,不让他奔溃了,这个问题的终极解决方案还是得让google去修复。
Constructor and Description |
---|
WrapContentLinearLayoutManager(android.content.Context context) |
WrapContentLinearLayoutManager(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
WrapContentLinearLayoutManager(android.content.Context context,
int orientation,
boolean reverseLayout) |
Modifier and Type | Method and Description |
---|---|
void |
onLayoutChildren(RecyclerView.Recycler recycler,
RecyclerView.State state) |
public WrapContentLinearLayoutManager(android.content.Context context)
public WrapContentLinearLayoutManager(android.content.Context context, int orientation, boolean reverseLayout)
public WrapContentLinearLayoutManager(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)