SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

How to refresh ui on card swaping

Open SanjayAndroidDev opened this issue 8 years ago • 0 comments

mSwipeStack.setSwipeProgressListener(new SwipeStack.SwipeProgressListener() { @Override public void onSwipeStart(int position) {

        }

        @Override
        public void onSwipeProgress(int position, float progress) {


            System.out.println("progress...."+progress);

            View mView = mSwipeStack.getTopView();

            if (progress < 0) {
                mView.setBackgroundColor(getResources().getColor(R.color.continue_button_color));
            } else {
                mView.setBackgroundColor(getResources().getColor(R.color.bel_red_text));
            }
        }

        @Override
        public void onSwipeEnd(int position) {
        }
    });

I tried this but not working

SanjayAndroidDev avatar Feb 10 '17 14:02 SanjayAndroidDev