Skip to content

Commit

Permalink
拖拽删除功能,bug:删除之后一处DragView,删除过程中不允许拖拽发生
Browse files Browse the repository at this point in the history
  • Loading branch information
gumingwei committed May 5, 2016
1 parent c1bd02a commit 2c776ba
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 97 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/well/swipe/service/SwipeService.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ public boolean safeClick() {

@Override
public void onDeleteClick(View view) {
Log.i("Gmw", "service_onclick");
Object tag = view.getTag();
if (tag instanceof ItemApplication) {
/**
Expand All @@ -546,7 +545,7 @@ public void onDeleteClick(View view) {
int index = ((ItemApplication) tag).delete(this);
if (index > 0) {
/**
*删除成功后更新戒面
*删除成功后更新界面
*/
mSwipeLayout.getAngleLayout().getAngleView().removeItem();
}
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/well/swipe/view/AngleIndicatorView.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,4 @@ public void onAngleChanged2(int cur, float pre) {
}
invalidate();
}


}
Loading

0 comments on commit 2c776ba

Please sign in to comment.