public class XLinearLayoutManager
extends LinearLayoutManager
| Constructor and Description |
|---|
XLinearLayoutManager(android.content.Context context) |
XLinearLayoutManager(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
XLinearLayoutManager(android.content.Context context,
int orientation,
boolean reverseLayout) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canScrollHorizontally() |
boolean |
canScrollVertically() |
void |
onLayoutChildren(RecyclerView.Recycler recycler,
RecyclerView.State state) |
XLinearLayoutManager |
setScrollEnabled(boolean flag)
是否支持滑动
|
public XLinearLayoutManager(android.content.Context context)
public XLinearLayoutManager(android.content.Context context,
int orientation,
boolean reverseLayout)
public XLinearLayoutManager(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public void onLayoutChildren(RecyclerView.Recycler recycler,
RecyclerView.State state)
public XLinearLayoutManager setScrollEnabled(boolean flag)
flag - public boolean canScrollVertically()
public boolean canScrollHorizontally()