Questions tagged [cardview]

CardView is a widget for implementing 'card-styled' views in Android.

In Android, a card is a self-contained view similar to Android's FrameLayout (in fact CardView extends FrameLayout) which gives you the possibility of setting up an high contrast between the card and the background through elevation, thus generating more immersive apps.

CardView is often used in combination to RecyclerView. Usually, you would have multiple cards and use the RecyclerView as a container for scrolling between them.

You can read more about cards and recycler view here: https://developer.android.com/training/material/lists-cards.html

568 questions
2
votes
2 answers

How do you create a custom CardView object from an XML layout file?

I'm trying to create a custom CardView object called WeekView. WeekView extends CardView. I have a CardView layout in an XML file. How do I make the WeekView "copy" the layout from the XML file? Simply put, I want to be able to do this: WeekView…
triggdev
  • 105
  • 1
  • 7
2
votes
0 answers

Selecting cardview inside recyclerview selects other items also

When I change the color of a cardview which is inside a recyclerview, it changes color of other items also. How can I solve this problem. Below is the part of the module where I am changing the background color : public…
2
votes
1 answer

CardView only showing first row of GridLayout

For some reason, my CardView is only showing the first row of images in my grid view. (or my GridView is only showing the first row - I can't tell). I am dynamically adding images into the gridView and using gridAdapter.notifyDataSetChanged().…
VIN
  • 6,385
  • 7
  • 38
  • 77
2
votes
0 answers

Apple Wallet Animation for Android

I am in search of apple wallet kind of animation for android. Can you please help me out of this. Link 1 : https://github.com/3lvis/CardStack Link 2 : https://android-arsenal.com/details/1/3096 These are points I am looking out in this animation…
Ritesh
  • 105
  • 4
2
votes
0 answers

Disable other buttons in recyclerView when one of them is pressed Android

I have a recyclerView which contains cardViews and each cardView contains a button. I want to disable remaining buttons when one button is pressed. how should I do that ? I tried adding buttons in a List to disable them, but I was not success. here…
2
votes
0 answers

Hide cardViews after clicked on button from another cardView

In my scenario if I click on a expanded card from card_1 then all other cards should be invisible. Also, can I change the positions of the card runtime so it can move 2nd card on the position of the first and it will expand to full screen so there…
1
vote
1 answer

How to add arrow to cardview right side

I have rectangle Cardview how to add to my cardview something as an arrow or triangle (it can be with no dot) like as on the right side of this image?
Slava
  • 443
  • 4
  • 12
1
vote
1 answer

Why can't I see the hidden textview behind my cardview after it animates and moves to left for a second?

I am trying to show a message behind the CardView in the space that is created after the Cardview moves to left for a moment and then again make that text invisible after the Cardview comes back to its original position. I want this to happen when I…
1
vote
1 answer

Get content size of listview in flutter

I am working on flutter project. I want to get content size of horizontal listview. When i click on option in list view , i want to check that option is in proper bound of screen or out of bound. If it is out of bound, then how to move in of…
Balkaran
  • 33
  • 7
1
vote
2 answers

Java - getCardBackgroundColor - color for CardView

Can you help me with my code? I am changing the color of the item based on the information from the database, and now I wanted to transfer the color to the CardView, but I don't know what the notation should look like, because this code tells me…
Chad Davis
  • 69
  • 6
1
vote
0 answers

Pull refresh of RefreshView not working when contains cards:CarouselView

I have implemented cardview inside of refreshview. RefreshView pullrefresh not working. Using library https://github.com/AndreiMisiukevich/CardView/blob/master/docs/CardsView.md/
Rejah
  • 11
  • 3
1
vote
0 answers

On hitting toggle button new page opens. How to avoid it?

I want to achieve below two functionalities : toggle button ON/OFF. (Not want new details page to be open here) clicking on CardView new details page should open. On clicking cardView new details page opens, this working as expected. but,…
1
vote
1 answer

Android RecyclerView with blank data?

I have a very strange issue with a RecyclerView. It shows a card with missing info, although in the adapter it receives an element of the list. How it is now ? How it should be ? I have a feeling that sometimes it flashes data for a moment, but…
1
vote
1 answer

Double Click Problem in android with java

I had created a Java Class for double click but I am not able to double Click on the Item because when i click for only one time the item doesn't wait for double click ! Double Click Class Code package…
Crazy Gamerz
  • 76
  • 1
  • 8