FAQ Database Discussion Community


How to dynamically add cardslib CardListView title text with the data retrieved from parse.com database?

android,parse.com,cardslib
I have a simple ParseQuery which retrieves a single object of a class 'PrivateData'. ParseQuery<PrivateData> query = ParseQuery.getQuery(PrivateData.class); query.whereEqualTo("user", ParseUser.getCurrentUser()); This code can then be used to populate my listView with the data from PrivateData class. But my requirement is to have a CardListView and populate the title. How to...

findViewById returning null CustomSource cadslib

android,thumbnails,cardslib
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 find R.id.textview_oferta_preco, it returns null. Bellow follow my classs and...

Cardslib round corners

android,android-layout,android-cardview,cardslib
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! Moreover in the second project...

Generate cards with cardslib and load images with picasso

android,material-design,picasso,cardslib
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...

CardsLib listview not getting populated

android,android-cardview,cardslib
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 ThemeActivity extends Activity {...

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

android,android-layout,recyclerview,android-cardview,cardslib
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...

Cardslib's CardRecyclerView is always null

android,android-layout,recyclerview,android-cardview,cardslib
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 onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.native_recyclerview_card_layout); ArrayList<Card> cards = new ArrayList<Card>(); //Create a...

Custom Drawable not generating round corners for CardView's image

android-layout,android-imageview,android-cardview,cardslib
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 able to set...

What is the accurate way to customize cards with cardslib?

android,android-layout,android-cardview,cardslib
I have a card declared in the file cardslib_item_card_view: <it.gmariotti.cardslib.library.view.CardViewNative xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card="http://schemas.android.com/apk/res-auto" xmlns:card_view="http://schemas.android.com/apk/res-auto" card_view:cardCornerRadius="4dp" style="@style/native_recyclerview_card.base" android:id="@+id/carddemo" android:layout_width="match_parent" android:layout_height="wrap_content"> and set as content view within onCreate() method: public...

Fragment with cardslib to fill the whole screen

android,android-fragments,cardslib
I tried making an app using this tutorial (example 2). I created a navigation drawer activity. My main fragment xml (added card): <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:card="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin"...