Questions tagged [android-cardview]

CardView is a widget used to show complex lists and cards in your app, it has material design style by default.

CardView is a widget used to show complex lists and cards in your app, it has material design style by default. CardView extends the FrameLayout class and lets you show information inside cards that have a consistent look on any app. CardView widgets can have shadows and rounded corners.

Useful links

2320 questions
0
votes
2 answers

This error keep on pop up: No view found for id 0x7f08003d

I am created a fragment and I want to insert it into a framelayout which is inside the content of my cardview. Inside the fragment there is another reyclerView. View view; private List dayItemList = null; public static Day_Fragment…
0
votes
1 answer

how can i round corner of constraint layout or cardview or viewpager

i want to round corner of my viewpager that it is a image slider i try to use shape to round corner of constraint layout and viewpager and .. but it wasnt work i used card view but it wasnt work too
0
votes
2 answers

CheckBox States Keep Changing While Scrolling in Recycler View

I am trying to make an Attendance App for my College. I am using CardView Inside a Recycler View. Inside my Card View is a checkBox to mark the attendance of the particular student. The problem is that if i mark say, Student 1,2 and 3. some random…
0
votes
1 answer

Cardview does not collapse when Visible.GONE child API<24

I have a RecyclerView that contains a list of MaterialCardView. Inside MaterialCardView, there is a RecyclerView and an Expand / Collapse button. When clicking on Collapse, the internal RecyclerView is assigned Visible.GONE, but on devices with API…
Sergey J.
  • 1
  • 2
0
votes
1 answer

random amount of textviews on a single cardview not working

I am pulling Room data from a web page. Room title and people in that room. The number of people changes and I need to display all people in a particular room on a single cardview. I've tried a lot of not so great ideas. such as creating 16 separate…
0
votes
0 answers

I use flags in categories area grid view with card view and i cant click on 2nd tile in single click i need to press it 2nd time then it select

I use flags in categories area grid view with card view and when i select 1 it select and when I click on 2nd it don't select at 1st time I need to press it 2nd time what to do?enter image description here 2.enter image description here
0
votes
2 answers

TextView inside CardView isn't displayed

I have a TextView inside my CardView layout but it's not being displayed on neither the Layout preview nor the live device. Similar questions had answers like "remove tools:android:text=".." " etc. but that's not the issue here. Any ideas? This is…
Stelios Papamichail
  • 955
  • 2
  • 19
  • 57
0
votes
1 answer

How to set CardView width equals to nested TextView width

I created a CardView widget, inside of which a TextView is. The text of the TextView changes in the runtime. How can I bind my CardView width to the TextView width? What I have tried so far: In the CardView, I added,…
Alan
  • 589
  • 5
  • 29
0
votes
2 answers

Can I change a button visibility in a recyclerview only in one of cardview when gps data change

I have a recyclerView with 5 cardView. there are three Button in each cardview. One of this button invisible and when GPS data changed can be visible in only one cardview. my problem is I can't do this. I try some way. one away is: public void…
mehdi
  • 340
  • 4
  • 17
0
votes
1 answer

ConstraintLayout shown is terrible on older Android

On newer Androids, app shows layout that is exactly how it is previewed on Android Studio, however, on older Androids ( tested 4.4.2 to 5 ), there seems to be a huge difference, especially on the size of cards and margins of each card ( and…
0
votes
2 answers

How to change a cardview color inside a listview programatically?

UPDATE: I tried to create 3 different layouts, one with a green card, other with red, and other yellow. It still not working. All color remain the same. :( I have a RFID device. When I read tags, it would populate a listview with cardviews which has…
Vhox
  • 17
  • 7
0
votes
1 answer

How to create transparent semicircle on the CardView

The problem is that these semicircles should change position depending on the content. https://i.stack.imgur.com/U0A1L.png I have tried to do this using two CardView, but it was no what I want
Artem
  • 3
  • 3
0
votes
0 answers

Cardview radius was missing because of hardwareacclerated true

I have a list of card view with pull to refresh functionality. For a custom loading image, I tried to draw on the canvas with the hardwareAccelerated true setting. because of this card view radius was missing. I need hardwareAccelerated true setting…
0
votes
3 answers

How to show card view background like progress in Android?

I want to set app:cardBackgroundColor of CardView like this: <-----x-----> |-----------|------| | color1 |color2| |-----------|------| where x is percentage of CardView having color1, By default, the whole background color should be color2, How…
Akshdeep Singh
  • 1,301
  • 1
  • 19
  • 34
0
votes
2 answers

How to design playlist item in RecyclerView like youtube kids app

I try to design card like youtube kids as you can see in image below without using ConstraintLayout but I cant find any layout can do something like this
Mahmood Ali
  • 487
  • 1
  • 6
  • 19