private View getCardView(final CardItem card) {
        View view = card.view;
        ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(mCardWidth,
                mCardHeight);
        view.setLayoutParams(layoutParams);
        view.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                bringCardToFront(card);
            }
        });
        return view;
    }
@author BakerJ
        https://github.com/BakerJQ/InfiniteCards
infinite-cards/src/main/java/com/bakerj/infinitecards/InfiniteCardView.java