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

findViewById returning null CustomSource cadslib

I've been trying to use the cardslib lirary in a project I'm working on. I'm trying to use Thumbnail with CustomSource. Everything works as expected. However, when I call findViewById in setupInnerViewElements method on my class that extends Card to…
Oswaldo
  • 65
  • 1
  • 4
1
vote
2 answers

Custom Drawable not generating round corners for CardView's image

I created a list of Cards with the new CardView and RecyclerView that look this way: I've tried to modify the card with round corners as explained by Mariotti in this post. PROBLEM: The problem is that, as you can see from the screenshot I am only…
Cris
  • 2,002
  • 4
  • 30
  • 51
1
vote
1 answer

Cardslib's CardRecyclerView is always null

I am developing with cardslib library and implementing this example. Although I slavishly follow the instructions in the tutorial when I create a CardRecyclerView object, that object appears to always be null. Check my code: @Override protected void…
1
vote
1 answer

Cardslib - unwanted 12dp margin on all cards

Summary: I’m new to Android development, and I’m using Gabriele Mariotti's excellent cardslib to display images (.jpgs) on cards. I want the image to cover the entire card with no margin. Instead, I’m seeing an unwanted 12dp margin on all sides of…
1
vote
1 answer

Highlight a pressed card item : using CardView from cardslib

I'm using CardView in a CardListView. I would like to know how to highlight a card item when it's pressed just like in the "CardsLibDemo Extras" application, precisely in the "Card and Weather List" fragment when you press on a card from the "You…
AndroWeed
  • 133
  • 2
  • 12
1
vote
0 answers

Android: Cardslib Errors when referencing library

So I wanted to implement the Cardslib from Gabriele Mariotti and I followed his steps to successfully add cardslib as a library to my project. But as soon as I add the library reference I get these errors: G:\UI Kit\Android Sample…
Pjayness
  • 365
  • 1
  • 6
  • 22
1
vote
0 answers

Android CARDSLIB: How to propagate card click to Spannable String?

I'm trying to solve a problem I'm having with Cardslib and spannable text. Cards display correctly and each card shows the text I made spannable. Each spanned text has an overriden onClick listener that replaces current fragment. The problem seems…
Jorge Cespedes
  • 547
  • 1
  • 11
  • 21
1
vote
1 answer

image height doesn't wraping content inside listview

I have a problem while working with List view and cardslib library. I created a card list with the same structure of list_card_thumbnail_layout and each card contains a photo and text I used for card layout card_thumbnail_layout But the source of…
1
vote
1 answer

Add Cardslib library To Android Studio 0.8.1

This is my first project using Android Studio so spare me if you find this question naive. I am trying to include the Cardslib library to my project in Android Studio (version 0.8.1). Initially I tried to include it by adding the following line in…
Paritosh
  • 367
  • 5
  • 20
1
vote
1 answer

Trouble importing library project into Android Studio "Main Manifest Missing"

I've been researching this error a ton and can't seem to fix it... and it's been extremely frustrating... My main build.gradle looks like this: buildscript { repositories { mavenCentral() } dependencies { classpath…
Patrick Mahoney
  • 555
  • 7
  • 19
0
votes
1 answer

Display Listview content in card form

I am looking for a way to display the content in my Listview in a card, similar to a Google Card or one the OneFootball App, within Android Studio. My MainActivty.java: public class MainActivity extends AppCompatActivity { private Button…
name
  • 1
  • 1
0
votes
1 answer

Create a new card

I'm relatively new to flutter but I've been play around flutter for a while. What I wanted to create was a new card in a list when I press on a FAB. (ie. you press the FAB and it takes you to the insert text page, and then you press ENTER and then…
Tom O'Sullivan
  • 3,416
  • 5
  • 15
  • 27
0
votes
2 answers

How we fetch Onclick Button value in Cards recylerView

It show an Null Object error. When i am fetching an Button Value on card RecylerView Process: com.softedge.visioneering.tfd, PID: 9884 java.lang.NullPointerException: Attempt to invoke virtual method 'int…
0
votes
1 answer

Unable to implement both OnCardClickListener and OnLongCardClickListener on Cards from CardsLib

I'm using Cards from the CardsLib library inside a CardGridView. I'm able to catch single clicks OR long clicks when implementing one of the listeners, but I'm unable to implement both. Like for regulars views, I'm returning true in the…
Jérémy
  • 263
  • 1
  • 3
  • 10
0
votes
1 answer

How to add custom layout in CardListView for gabrielemariotti cards

I am Creating a Application with cardlistview.. I implemented the cards list view using gabrielemariotti cards library gabrielemariotti cards I am able to achieve the cardlist view and by inflating the custom layout is also successfull. While i…
Karthik CP
  • 1,150
  • 13
  • 24