Questions tagged [cardslib]

cardslib is a Library that provides an easy way to display a UI Card in Android apps. Display single cards, list of cards and grid or staggered grid of Cards.

cardslib is a Library that provides an easy way to display a UI Card in Android apps. Display single cards, list of cards and grid or staggered grid of Cards.

Card Library provides 5 custom tags:

  • CardView to display a UI Card.
  • CardListView to display a List Card.
  • CardGridView to display a Grid Card.
  • StaggeredGridView to display a Staggered Grid Card.
  • CardListDragDropView to display a List Card with drag and drop support.

It requires API 14+

Links:

86 questions
1
vote
1 answer

Digital Cards showing vertical instead if horizontal

I'm trying to get the cards below to show up horizontally but they keep showing vertically. I have no idea how to change this. I've tried several different things but either the content inside the card moves or just nothing happens. And it's not…
1
vote
1 answer

Android List of CardWithList

I'm implementing Gabriele Mariotte's cardslib - CardWithList. Is there a way to dynamically create the cards and put them in a list? I've tried looping through an arraylist in my initcard() method, but this seems to only create one card and…
1
vote
1 answer

Material Card with Image not loading using CardsLib library

I'm using CardsLib library in my Android App. I'm trying to use the MaterialCard from this library. However, when I'm trying to run the example , I get this output Here are the codes of this Activity: MaterialActivity.java package…
Sparker0i
  • 1,787
  • 4
  • 35
  • 60
1
vote
1 answer

In general, how do I use a custom card with a recyclerview?

I want to use cardslib with an existing RecyclerView. https://github.com/gabrielemariotti/cardslib I have a working program with the standard android CardView and I want to instead use the cardslib cards. I have a ViewAdapter class, and I am…
MrGibbage
  • 2,644
  • 5
  • 39
  • 50
1
vote
0 answers

Animating CardWithList CardsLib Android

I am implementing the CardWithList design from Cardslib library from Github. Library Link : Cardslib Github I want to perform left in animation to elements in the list private void setLeftAdapter() { AnimationAdapter animCardArrayAdapter =…
BLACKMAMBA
  • 675
  • 2
  • 11
  • 28
1
vote
1 answer

Set custom emptyView CardWithList

I'm trying to set a custom EmptyView. Using: @Override protected void initCard(){ View empty view = getView() //inflate the empty view, bind views and return setEmptyView(view); } I'm getting a NullPointerException because the LinerListView…
royB
  • 12,779
  • 15
  • 58
  • 80
1
vote
1 answer

Error when trying to use the Cardslib library: unable to find attribute android:foregroundInsidePadding

When trying to implement the Cardslib library in my app, I get this error every time I try to run the app: ERROR: In ForegroundLinearLayout, unable to find attribute android:foregroundInsidePadding However, upon looking through the attrs.xml…
gpickart
  • 87
  • 8
1
vote
1 answer

How to break a cardview in multiple columns to make all the content visible in parts?

I am working on a POS system which needs a delivery screen in which, I have to show all orders in number of columns of list in Cardview. Something like shown in this image: I am using cardslib to get the cardsview in my app. Can you please help me…
sarvajeet294
  • 41
  • 10
1
vote
0 answers

How to make base material card of Cardslib library expand when I click on a text supplemental action

I have implemented new Material Card design from CardsLib library from Github and using multiple cards inside Recycler view. The card layout I have implemented is: Now I want to make the Card Expand when I click on 'LEARN MORE' in the card and…
1
vote
1 answer

Updating custom card expand UI in cardslib?

This isn't an issue, it's more of a question. I wanted to know when we create a card with custom expand and put that card in a cardslist. When all is the setUpInnerViewElements() called? is it called when we expand the card or is it also called when…
1
vote
1 answer

Cardslib round corners

I have two projects where I create a set of custom cards extending the card class, and then I insert them into a StaggeredView. My problem is that in one of these projects the cards corners are automatically rounded, while on the other one not!…
Cris
  • 2,002
  • 4
  • 30
  • 51
1
vote
1 answer

CardsLib listview not getting populated

I am using Cardslib and am trying to populate each card with an custom layout. I have everything set up but I cannot seem to get this to work. The problem I am having is that the CardListView doesn't get populated. Here's my codes: public class…
Jack
  • 2,043
  • 7
  • 40
  • 69
1
vote
1 answer

Using Cardslib: "CardView cannot be cast to CardNativeView"

i just implemented Cardslib in my code. I'm using the following code to implement TopColoredCard: ArrayList cards = initCard(); updateAdapter(cards); ... private ArrayList initCard() { //Init an array of Cards …
ich5003
  • 838
  • 1
  • 9
  • 24
1
vote
1 answer

Customize shadows with cardslib

I'd like to change default shadow for material card with Cardslib. I have…
Alex
  • 11
  • 1