public class WrapContentLinearLayoutManager
extends LinearLayoutManager
RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案 只是把这个异常捕获了,不让他奔溃了,这个问题的终极解决方案还是得让google去修复。
| 构造器和说明 | 
|---|
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)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
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)