private void setCardSize(boolean resetAdapter) {
        mCardWidth = getMeasuredWidth();
        mCardHeight = (int) (mCardWidth * mCardRatio);
        mAnimationHelper.setCardSize(mCardWidth, mCardHeight);
        mAnimationHelper.initAdapterView(mAdapter, resetAdapter);
    }
@author BakerJ
        https://github.com/BakerJQ/InfiniteCards
infinite-cards/src/main/java/com/bakerj/infinitecards/InfiniteCardView.java