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
16
votes
4 answers

cardslib error resource android:attr/foregroundInsidePadding is private while targeting SDK 26

Okay, I have created a completely new project in Android Studio 3.0. Gradle build works fine in this newly instantiated project, until I insert the following lines in my module's build.gradle dependencies { ... compile…
Sparker0i
  • 1,787
  • 4
  • 35
  • 60
7
votes
2 answers

How to add overflow icon items in a card in Android

Hi I am trying to create a layout like this using support library https://developer.android.com/reference/android/support/v7/widget/CardView.html but i didn't found a way to add overflow icon in a card. I don't want to use this library…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
6
votes
1 answer

Material Card with Cardslib library

I am implementing the new Material Card design from Cardslib library from Github. Library Link : Cardslib Github But I am unable to implement multiple cards inside Recycler view. It would be really helpful if anyone has already implemented the new…
Sumit Sahoo
  • 2,949
  • 1
  • 25
  • 37
3
votes
0 answers

CardGridStaggeredView cards disappear

I am using CardGridStaggeredView to display cards in my Activity, the problem is that when I use 2 or more columns, the cards disappear while scrolling. this is my xml file:
3
votes
1 answer

What is the accurate way to customize cards with cardslib?

I have a card declared in the file cardslib_item_card_view:
Cris
  • 2,002
  • 4
  • 30
  • 51
2
votes
0 answers

Cardslib - card flickering on expand/collapse

When I toggle the expand by tapping on the card/expand button the whole card disappears for a very short time and reappears again. It happens at the end of the expand animation. See the problem in action:…
Jonathan S
  • 491
  • 1
  • 5
  • 11
2
votes
1 answer

Cannot Update Value Displayed in the Card - Cardslib Library for Android

I am implementing the CardWithList design from Cardslib library from Github. Library Link : Cardslib Github The problem im facing is that i cannot update the card values Here is the Code GetStat.java import android.content.Context; import…
BLACKMAMBA
  • 675
  • 2
  • 11
  • 28
2
votes
3 answers

How can i show count down timer on card title in android?

When i try to show timer on textView with setText method, it is working. But here timer (text) does not get any update, shows only "0, 0, 0, 0" on card. I'm using cardslib library to show cards. I don't know if it is possible to show timer on cards.…
Fatih Turgut
  • 319
  • 3
  • 9
2
votes
1 answer

Cardslib - How to set action for button events of custom cards on CardRecyclerView

I am trying to use Cardslib to create a RecyclerView with custom layout rows that would expand when I click a button on them. I followed customization guide and create both custom layout and custom card class, the cards do appear correctly like this…
2
votes
3 answers

Cardslib's CardView OnCardClickListener's onClick method not being called

I am using this library in my app: Card Library : Guide and created a card as shown in the example. Now I need to handle a click event, but I receive an error when instantiating the following: new Card.OnCardClickListener, which says…
2
votes
0 answers

How to make CardLib Android Library to Expand only one card at time and collapse the others

im using the Android Library CardsLib to display an expandable list, my implementation should only have one item expanded at time and if i try to expand other card the the previous expanded one should collapse and then expand the new one. I have…
geekkoz
  • 3,654
  • 4
  • 21
  • 19
2
votes
1 answer

Cardslib Thumbnail not appearing

I'm experimenting with the Android cardslib and trying to show an image using this tutorial: https://github.com/gabrielemariotti/cardslib/blob/master/doc/THUMBNAIL.md However, it doesn't show the image, just an empty card. My Activity code is:…
Dwebtron
  • 777
  • 13
  • 27
2
votes
2 answers

Cardslib Card size overflow

I am using Cardslib and marked in the red rectangle, some cards in the grid overflow and joins the next card below. How can i prevent this?
Murat
  • 3,084
  • 37
  • 55
2
votes
2 answers

Cardslib - custom CardArrayAdapter

I've created a custom adapter that extends CardArrayAdapter. Just playing with it to get comfortable. Kind of treating it like a custom baseadapter with a viewholder and all that. Set everything I think correctly in a test app and the app opens,…
Psest328
  • 6,575
  • 11
  • 55
  • 90
2
votes
3 answers

How to include cardslib to my Android project?

I want to create a GridView like GooglePlay. I found this library on Github. I don't exactly know how to include it to my project. I tried to add it in "Build Path", but it doesn't work. Is it possible to export it as a jar file?
Dragon warrior
  • 1,644
  • 2
  • 24
  • 37
1
2 3 4 5 6