Skip to content

实现侧滑,拖拽-----百公里加速只需要三行代码

Notifications You must be signed in to change notification settings

mrme2014/ItemTouchHelper

Repository files navigation

ItemTouchHelper

ItemTouchHelper修改源码实现非侵入式侧滑菜单,长按拖拽,百公里加速只需要三行代码

集成方式:

 dependencies {
	        compile 'com.qiaomu:libitemtouchhelper:1.0.2'
	}

使用方式:

	
 ItemTouchHelperCallback callback = new ItemTouchHelperCallback(ItemTouchHelper.UP|ItemTouchHelper.DOWN,adapter);
 ItemTouchHelper helper = new ItemTouchHelper(callback);
 helper.attachToRecyclerView(recylerView);

运行时图

image

About

实现侧滑,拖拽-----百公里加速只需要三行代码

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages