SwipeListView icon indicating copy to clipboard operation
SwipeListView copied to clipboard

clearPressedState has background issue

Open harden123 opened this issue 11 years ago • 1 comments

current item is still has background issue

harden123 avatar Jan 01 '15 03:01 harden123

problem solved,In Method onTouchEvent ( case MotionEvent.ACTION_CANCEL:) add this: if (mIsHorizontal != null && mIsHorizontal) { if (mFirstX - lastX > mRightViewWidth / 2) { showRight(mCurrentItemView); } else { System.out.println("5---> hiddenRight"); /** * 情况五: *

* 向右滑动一个item,且滑动的距离超过了右边View的宽度的一半,隐藏之。 / hiddenRight(mCurrentItemView); } //__----add by harden123---*// MotionEvent obtain = MotionEvent.obtain(ev); obtain.setAction(MotionEvent.ACTION_CANCEL); super.onTouchEvent(obtain); return true; }

harden123 avatar Jan 01 '15 03:01 harden123