SwipeListView
SwipeListView copied to clipboard
clearPressedState has background issue
current item is still has background issue
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; }