本文整理汇总了Java中com.yanzhenjie.recyclerview.swipe.SwipeMenuRecyclerView.LoadMoreView方法的典型用法代码示例。如果您正苦于以下问题:Java SwipeMenuRecyclerView.LoadMoreView方法的具体用法?Java SwipeMenuRecyclerView.LoadMoreView怎么用?Java SwipeMenuRecyclerView.LoadMoreView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.yanzhenjie.recyclerview.swipe.SwipeMenuRecyclerView
的用法示例。
在下文中一共展示了SwipeMenuRecyclerView.LoadMoreView方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawHorizontal
import com.yanzhenjie.recyclerview.swipe.SwipeMenuRecyclerView; //导入方法依赖的package包/类
public void drawHorizontal(Canvas c, RecyclerView parent) {
c.save();
int childCount = parent.getChildCount();
for (int i = 0; i < childCount; i++) {
final View child = parent.getChildAt(i);
int childPosition = parent.getChildAdapterPosition(child);
if (childPosition < 0) continue;
if (mViewTypeList.contains(parent.getAdapter().getItemViewType(childPosition))) continue;
if (child instanceof SwipeMenuRecyclerView.LoadMoreView) continue;
final int left = child.getLeft();
final int top = child.getBottom();
final int right = child.getRight();
final int bottom = top + mDividerHeight;
mDivider.setBounds(left, top, right, bottom);
mDivider.draw(c);
}
c.restore();
}
示例2: drawVertical
import com.yanzhenjie.recyclerview.swipe.SwipeMenuRecyclerView; //导入方法依赖的package包/类
public void drawVertical(Canvas c, RecyclerView parent) {
c.save();
final int childCount = parent.getChildCount();
for (int i = 0; i < childCount; i++) {
final View child = parent.getChildAt(i);
int childPosition = parent.getChildAdapterPosition(child);
if (childPosition < 0) continue;
if (mViewTypeList.contains(parent.getAdapter().getItemViewType(childPosition))) continue;
if (child instanceof SwipeMenuRecyclerView.LoadMoreView) continue;
final int left = child.getRight();
final int top = child.getTop();
final int right = left + mDividerWidth;
final int bottom = child.getBottom();
mDivider.setBounds(left, top, right, bottom);
mDivider.draw(c);
}
c.restore();
}