SwipeStack
SwipeStack copied to clipboard
How to refresh ui on card swaping
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