本文整理汇总了Java中com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange类的典型用法代码示例。如果您正苦于以下问题:Java ItemDraggableRange类的具体用法?Java ItemDraggableRange怎么用?Java ItemDraggableRange使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ItemDraggableRange类属于com.h6ah4i.android.widget.advrecyclerview.draggable包,在下文中一共展示了ItemDraggableRange类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onGetChildItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetChildItemDraggableRange(MyChildViewHolder holder, int groupPosition, int childPosition) {
// sort within the same group
return new GroupPositionItemDraggableRange(groupPosition, groupPosition);
// // sort within the same section
// final int start = findFirstSectionItem(groupPosition);
// final int end = findLastSectionItem(groupPosition);
//
// return new GroupPositionItemDraggableRange(start, end);
// // sort within the specified child range
// final int start = 0;
// final int end = 2;
//
// return new ChildPositionItemDraggableRange(start, end);
}
开发者ID:pczhu,项目名称:android-advancedrecyclerview-master,代码行数:18,代码来源:MyExpandableDraggableWithSectionItemAdapter.java
示例2: isGroupPositionRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
private static boolean isGroupPositionRange(ItemDraggableRange range) {
if (range.getClass().equals(GroupPositionItemDraggableRange.class)) {
return true;
} else if (range.getClass().equals(ItemDraggableRange.class)) {
// NOTE: ItemDraggableRange is regarded as group position
return true;
}
return false;
}
开发者ID:fabricethilaw,项目名称:expandable-recyclerview-with-gridlayout,代码行数:10,代码来源:ExpandableRecyclerViewWrapperAdapter.java
示例3: onGetGroupItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetGroupItemDraggableRange(MyGroupViewHolder holder, int groupPosition) {
// sort within the same section
final int start = findFirstSectionItem(groupPosition);
final int end = findLastSectionItem(groupPosition);
return new GroupPositionItemDraggableRange(start, end);
}
开发者ID:pczhu,项目名称:android-advancedrecyclerview-master,代码行数:9,代码来源:MyExpandableDraggableWithSectionItemAdapter.java
示例4: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(MyViewHolder holder, int position) {
final int start = findFirstSectionItem(position);
final int end = findLastSectionItem(position);
return new ItemDraggableRange(start, end);
}
开发者ID:pczhu,项目名称:android-advancedrecyclerview-master,代码行数:8,代码来源:MyDraggableWithSectionItemAdapter.java
示例5: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(ViewHolder holder, int position) {
return null;
}
示例6: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(ViewHolder holder, int position) {
return new ItemDraggableRange(1, dataSet.size());
}
示例7: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(ViewHolder aHolder, int aPosition) {
return null;
}
示例8: onGetGroupItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetGroupItemDraggableRange(GroupViewHolder holder, int groupPosition) {
int end = Math.max(0, mProvider.getGroupCount() - 1);
return new GroupPositionItemDraggableRange(0, end);
}
示例9: onGetChildItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetChildItemDraggableRange(CollectionViewHolder holder, int groupPosition, int childPosition) {
int end = Math.max(0, mProvider.getGroupCount() - 1);
return new GroupPositionItemDraggableRange(0, end);
}
示例10: onGetGroupItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetGroupItemDraggableRange(SiteGroupViewHolder holder, int groupPosition) {
int end = Math.max(0, mProvider.getGroupCount() - 1);
return new GroupPositionItemDraggableRange(0, end);
}
示例11: onGetChildItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetChildItemDraggableRange(SiteViewHolder holder, int groupPosition, int childPosition) {
int end = Math.max(0, mProvider.getGroupCount() - 1);
return new GroupPositionItemDraggableRange(0, end);
}
示例12: isChildPositionRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
private static boolean isChildPositionRange(ItemDraggableRange range) {
return range.getClass().equals(ChildPositionItemDraggableRange.class);
}
开发者ID:fabricethilaw,项目名称:expandable-recyclerview-with-gridlayout,代码行数:4,代码来源:ExpandableRecyclerViewWrapperAdapter.java
示例13: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(ForumHolder holder, int position) {
return null;
}
示例14: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(MyViewHolder holder, int position) {
// no drag-sortable range specified
return null;
}
示例15: onGetItemDraggableRange
import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(ViewHolder holder, int position) {
// no drag-sortable range specified
return null;
}