cardslib

Android Card UI : card resize (gabrielemariotti)

不想你离开。 提交于 2020-01-25 11:43:06
问题 I'm making an android app with cards UI, by using the library: https://github.com/gabrielemariotti/cardslib I want to make a custom card which will be smaller than the default card size. Is there any way to do this? 回答1: The default card has a min height. You can override this value in your dimens.xml: <dimen name="card_base_empty_height">96dp</dimen> 来源: https://stackoverflow.com/questions/25907697/android-card-ui-card-resize-gabrielemariotti

How to add overflow icon items in a card in Android

做~自己de王妃 提交于 2020-01-02 03:15:32
问题 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 https://github.com/gabrielemariotti/cardslib/blob/master/doc/CARDGRID.md. I want to do same using support library that Google introduced recently. Isn't there is way to achieve using support library or I have to use gabrielemariotti library to add overflow

Generate cards with cardslib and load images with picasso

北慕城南 提交于 2019-12-12 02:04:43
问题 I am using cardslib (https://github.com/gabrielemariotti/cardslib) to create a project with cards and use picasso (http://square.github.io/picasso/), in order to dynamically create cards and load pictures into them with urls that I retrieve from Parse in a for loop. The problem I have is that even though I retrieve the correct data from Parse, only one image is loaded in all of the cards. The titles, subtitles etc are loaded correctly for each separate card, only the image is the same

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

谁说胖子不能爱 提交于 2019-12-11 09:53:39
问题 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 to implement this type of layout with cardslib. Or Can you suggest me what will I have to do to have this kinda layout in my app?? I also tried twowayview but couldn't get the idea for breaking the card in multiple columns just like the yellow card

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

房东的猫 提交于 2019-12-11 07:11:17
问题 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 to be that Cardslib is catching the onClick event and it isn't propagated to the handlers inside the spannable text. Does that make sense? Thanks in advance! 来源: https://stackoverflow.com/questions/27007531/android-cardslib-how-to-propagate-card

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

给你一囗甜甜゛ 提交于 2019-12-11 02:08:21
问题 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 OnCardClickListener is abstract: cannot be instantiated . In my Activity I have this code: Card card = new Card(getBaseContext());//getContext() CardHeader header = new CardHeader(getBaseContext()); card.addCardHeader(header); final CardViewNative cardView =

Cardslib - unwanted 12dp margin on all cards

十年热恋 提交于 2019-12-08 04:57:08
问题 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 the image. I’ve tried various things, but I’ve been unable to remove this margin (in other words, set the margin to 0dp). Details: I’m displaying a .jpg on a card. The .jpg is the only thing on the card (that is, no header, no thumbnail, etc.) The

How to add overflow icon items in a card in Android

青春壹個敷衍的年華 提交于 2019-12-05 04:49:09
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 https://github.com/gabrielemariotti/cardslib/blob/master/doc/CARDGRID.md . I want to do same using support library that Google introduced recently. Isn't there is way to achieve using support library or I have to use gabrielemariotti library to add overflow items in a card view. Update Guys I have edited question now it is more clear what i want. Gabriele

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

旧时模样 提交于 2019-11-27 02:44:05
问题 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 'com.github.gabrielemariotti.cards:cardslib-core:2.1.0' compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.1.0' compile 'com.github.gabrielemariotti.cards:cardslib-recyclerview:2.1.0' } Here is the error I get in the Build log /home/sparker0i/.gradle/caches/transforms