13

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!!

I wrestled a bear once.
  • 22,983
  • 19
  • 69
  • 116
user2953680
  • 564
  • 1
  • 5
  • 16

1 Answers1

2

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.

Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Natali Oct 15 '15 at 14:49
  • I have added more description. Thank you for your suggestion. – Pratik Butani Oct 15 '15 at 17:03