You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, You have done very great job. I want to implement SwipeRefreshLayout in CardStackView, on Scrolling the cards the SwipeRefreshlayout refreshing the View. If it is recyclerview or WebView we can handle this case, but in CardStackView how can we do this?
The text was updated successfully, but these errors were encountered:
Hi, I have tried to implement the functionality in StackScrollDelegateImpl for the UpDownStackAnimation class.
@Override
public void scrollViewTo(int x, int y) {
x = clamp(x, mCardStackView.getWidth() - mCardStackView.getPaddingRight() - mCardStackView.getPaddingLeft(), mCardStackView.getWidth());
y = clamp(y, mCardStackView.getShowHeight(), mCardStackView.getTotalLength());
mScrollY = y;
mScrollX = x;
updateChildPos();
//It will work like SwipeRefreshLayout in RecyclerView.
mCardStackView.getSwipeRefreshLayout().setEnabled(xScrollY==0);
}
Hi, You have done very great job. I want to implement SwipeRefreshLayout in CardStackView, on Scrolling the cards the SwipeRefreshlayout refreshing the View. If it is recyclerview or WebView we can handle this case, but in CardStackView how can we do this?
The text was updated successfully, but these errors were encountered: