File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,26 @@ repositories {
131131compile ' com.heaven7.android.dragflowlayout:dragflowlayout:1.6.3'
132132```
133133
134+ ## API说明
135+ ``` java
136+ // 设置拖拽状态监听器
137+ public void setOnDragStateChangeListener(OnDragStateChangeListener l)
138+ // 获取拖拽状态
139+ public @DragState int getDragState()
140+ // 设置Item点击事件处理器
141+ public void setOnItemClickListener(OnItemClickListener l)
142+ // 设置数据适配器
143+ void setDragAdapter(DragAdapter<T > adapter)
144+ // 获取Item管理器(方便CRUD-增删改查 item)
145+ public DragItemManager getDragItemManager()
146+ // 设置全局是否可拖拽。如果false,则无法长按拖拽了。
147+ public void setDraggable(boolean draggable)
148+ // 设置缓存view的个数。可避免重复创建item view
149+ public void prepareItemsByCount(int count)
150+ // 标记拖拽结束, 内部会自动将拖拽状态改为 DRAG_STATE_IDLE .
151+ public void finishDrag();
152+ ```
153+
134154## 重要版本更新日志。
135155- 1, version(1.5.0)
136156 * (1) , 增加拖拽状态监听器 和 child view观察者
You can’t perform that action at this time.
0 commit comments