本文整理了Java中android.support.v7.widget.GridLayoutManager.getReverseLayout()
方法的一些代码示例,展示了GridLayoutManager.getReverseLayout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GridLayoutManager.getReverseLayout()
方法的具体详情如下:
包路径:android.support.v7.widget.GridLayoutManager
类名称:GridLayoutManager
方法名:getReverseLayout
暂无
代码示例来源:origin: blipinsk/RecyclerViewHeader
public final boolean isReversed() {
if (linear != null) {
return linear.getReverseLayout();
} else if (grid != null) {
return grid.getReverseLayout();
// } else if (staggeredGrid != null) {
// return ; //TODO: 05.04.2016 implement staggered
}
return false; //shouldn't get here
}
代码示例来源:origin: open-android/BaseRecyclerAndAdapter
public final boolean isReversed() {
if (linear != null) {
return linear.getReverseLayout();
} else if (grid != null) {
return grid.getReverseLayout();
// } else if (staggeredGrid != null) {
// return ; //TODO: 05.04.2016 implement staggered
}
return false; //shouldn't get here
}
代码示例来源:origin: mengzhidaren/RecylerViewMultiHeaderView
public final boolean isReversed() {
if (linear != null) {
return linear.getReverseLayout();
} else if (grid != null) {
return grid.getReverseLayout();
// } else if (staggeredGrid != null) {
// return ; //TODO: 05.04.2016 implement staggered
}
return false; //shouldn't get here
}
代码示例来源:origin: open-android/BaseRecyclerAndAdapter
public final boolean isReversed() {
if (linear != null) {
return linear.getReverseLayout();
} else if (grid != null) {
return grid.getReverseLayout();
// } else if (staggeredGrid != null) {
// return ; //TODO: 05.04.2016 implement staggered
}
return false; //shouldn't get here
}
代码示例来源:origin: mengzhidaren/RecyclerViewVideoDemo
public final boolean isReversed() {
if (linear != null) {
return linear.getReverseLayout();
} else if (grid != null) {
return grid.getReverseLayout();
// } else if (staggeredGrid != null) {
// return ; //TODO: 05.04.2016 implement staggered
}
return false; //shouldn't get here
}
代码示例来源:origin: mylhyl/Android-CircleDialog
public GridLayoutManagerWrapper(Context context, GridLayoutManager layoutManager) {
super(context, layoutManager.getSpanCount(), layoutManager.getOrientation(), layoutManager.getReverseLayout());
}
}
代码示例来源:origin: linfaxin/PullRefreshLoadRecyclerView
@Override
public void setLayoutManager(LayoutManager layout) {
if (layout != null && !(layout instanceof OverScrollImpl.OverScrollLayoutManager)) {
if (layout.getClass().equals(GridLayoutManager.class)) {
GridLayoutManager grid = (GridLayoutManager) layout;
layout = new OverScrollGridManager(this, grid.getSpanCount(), grid.getOrientation(), grid.getReverseLayout());
} else if (layout.getClass().equals(LinearLayoutManager.class)) {
LinearLayoutManager linear = (LinearLayoutManager) layout;
layout = new OverScrollLinearLayoutManager(this, linear.getOrientation(), linear.getReverseLayout());
} else {
throw new IllegalArgumentException("LayoutManager " + layout +
" should be subclass of: " + OverScrollLinearLayoutManager.class.getName());
}
}
super.setLayoutManager(layout);
}
内容来源于网络,如有侵权,请联系作者删除!