Skip to content

Commit 81d9325

Browse files
authored
Update README.md
1 parent 2c58618 commit 81d9325

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repositories {
5656
jcenter()
5757
}
5858

59-
compile 'com.heaven7.android.dragflowlayout:dragflowlayout:1.8.3'
59+
compile 'com.heaven7.android.dragflowlayout:dragflowlayout:1.8.8'
6060
```
6161
```java
6262
<com.heaven7.android.dragflowlayout.DragFlowLayout
@@ -128,7 +128,7 @@ repositories {
128128
jcenter()
129129
}
130130

131-
compile 'com.heaven7.android.dragflowlayout:dragflowlayout:1.8.3'
131+
compile 'com.heaven7.android.dragflowlayout:dragflowlayout:1.8.8'
132132
```
133133

134134
## API说明
@@ -147,6 +147,9 @@ compile 'com.heaven7.android.dragflowlayout:dragflowlayout:1.8.3'
147147
public void setDraggable(boolean draggable)
148148
//设置缓存view的个数。可避免重复创建item view
149149
public void prepareItemsByCount(int count)
150+
151+
 //标记拖拽开始,这个会使得拖拽状态变更为draggable. .
152+
public void beginDrag();
150153
//标记拖拽结束, 内部会自动将拖拽状态改为 DRAG_STATE_IDLE .
151154
public void finishDrag();
152155
```
@@ -171,7 +174,9 @@ compile 'com.heaven7.android.dragflowlayout:dragflowlayout:1.8.3'
171174
* (1) , fix bug of issue(#1)
172175
- 5, version(1.8.3)
173176
fix a bug of multi fask click with touch scrol (解决多次点击+滑动的问题)
174-
177+
- 6,version (1.8.8)
178+
    为部分伙伴的新需求,开启编辑模式 添加新方法 beginDrag().
179+
   
175180
## 一些思想
176181
* 1 ,最开始我打算用DragHelper做的。但是发现不能将拖拽的child 渲染在最上面。
177182
* 2, RecyclerView的自定义LayoutManager + onItem touch / 应该也可以.

0 commit comments

Comments
 (0)