当前位置: 首页>>代码示例>>Java>>正文


Java ItemDraggableRange类代码示例

本文整理汇总了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;
}
 
开发者ID:aliumujib,项目名称:Orin,代码行数:5,代码来源:PlayingQueueAdapter.java

示例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());
}
 
开发者ID:h4h13,项目名称:RetroMusicPlayer,代码行数:5,代码来源:OrderablePlaylistSongAdapter.java

示例7: onGetItemDraggableRange

import com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange; //导入依赖的package包/类
@Override
public ItemDraggableRange onGetItemDraggableRange(ViewHolder aHolder, int aPosition) {
    return null;
}
 
开发者ID:DenK91,项目名称:LinkedListInDB,代码行数:5,代码来源:DragOnLongPressAdapter.java

示例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);
}
 
开发者ID:PureDark,项目名称:H-Viewer,代码行数:6,代码来源:LocalCollectionAdapter.java

示例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);
}
 
开发者ID:PureDark,项目名称:H-Viewer,代码行数:6,代码来源:LocalCollectionAdapter.java

示例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);
}
 
开发者ID:PureDark,项目名称:H-Viewer,代码行数:6,代码来源:SiteAdapter.java

示例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);
}
 
开发者ID:PureDark,项目名称:H-Viewer,代码行数:6,代码来源:SiteAdapter.java

示例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;
}
 
开发者ID:seven332,项目名称:Nimingban,代码行数:5,代码来源:SortForumsActivity.java

示例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;
}
 
开发者ID:hanks-zyh,项目名称:RecylerView,代码行数:6,代码来源:MyDraggableSwipeableItemAdapter.java

示例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;
}
 
开发者ID:WriterOfAlicrow,项目名称:OpenCVTour,代码行数:6,代码来源:TourItemListFragment.java


注:本文中的com.h6ah4i.android.widget.advrecyclerview.draggable.ItemDraggableRange类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。