Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android RecyclerView with CardView - show cards in a stack-like (not a list)

I want to use the RecyclerView which is in the Android support v7 library to display a bunch of CardViews (which is also in the v7 support library), but instead of showing them on a list (in which I can scroll up/down) I want to show them as a stack (like card stack).

Does anyone know how I can achieve this behavior?

Thanks!!

like image 216
user2953680 Avatar asked Jun 22 '15 19:06

user2953680


2 Answers

Have you checked CardsUI-for-Android

CardsUI

An open source library offering the popular Google Now & Google Play cards views, additionnal features, view recycling and an optional Model-View-Controller structure.

Google Play Cards

This new type of card based on the new Google play design are highly customization.

The parameters include:

  • Title text (String)
  • Description text (String)
  • Title color (String)
  • Stripe color (String)
  • Menu overflow (Boolean)
  • Touch feedback on click (Boolean)

Here is an example:

mCardView.addCard(new MyPlayCard(
        "Different Colors for Title & Stripe", 
        "You can set any color for the title and any other color for the left stripe", 
        "#f2a400", "#9d36d0", true, false));

See Docs for More...

May it will be useful to you.

like image 143
Pratik Butani Avatar answered Nov 05 '22 23:11

Pratik Butani


These library would be helpful

https://github.com/kikoso/Swipeable-Card

https://github.com/kikoso/Swipeable-Cards

http://grishma102.blogspot.in/2014/04/tinder-app-like-control-with-animation.html

like image 34
user2980181 Avatar answered Nov 05 '22 23:11

user2980181