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
0 answers

add ripple in cardview of recycler view for api more than 19?

I tried the following code but it doesn't show any effect, I implemented the same method for recycler list view then it worked but for this, it is not working. I want to make a round ripple and should fit card view. Recycler view for card…
0
votes
1 answer

Add Recycler grid-card view in BasicActivity?

I wants to add RecyclerView in BasicActivity. I mean I choosed BasicActiivty among EmptyActivity and other designed by android. But, RecyclerView is not shown in correct place. I tried to add this recycler view, sometimes it overlap appbar,…
0
votes
2 answers

Adding textview dynamically to CardView

So, I have a card view created as follows:
Yasuo
  • 11
  • 1
  • 6
0
votes
0 answers

Android set CardView to half RecyclerView height

Setup: I have an Activity which has a BottomNavBar + fragment containing my RecyclerView. The RecyclerView should take all the space above the BottomNavBar. The RecyclerView always dispays 2 CardViews, which should each take 50% of the…
mrj
  • 589
  • 1
  • 7
  • 17
0
votes
1 answer

Drawing A Title Bar At The Top Of A CardView

I am trying to draw a title bar on the top of a card view. This is what I am getting (Also why is the text "Test Title Goes Here" not being drawn? but I am looking for this This is the xml I am using to get this
flashc5
  • 307
  • 1
  • 6
  • 16
0
votes
1 answer

How do I expand a CardView to overlap next RecyclerView Item?

I have a RecyclerView that inflates CardView with a custom LinearLayoutManager in which scrolling is disabled. I'll always only display 2 CardView on the screen. Each CardView has a collapsed part that appears when the little arrow is…
mrj
  • 589
  • 1
  • 7
  • 17
0
votes
0 answers

setting alarm on separate cards in cardView, keeps overRiding the first card time

I want to set separate alarms using cards in cardView with adapter and TimePickerFragment, it works with one card but over writes the alarm on the first card no matter what other card I select, would I need to add a method in my adapter class for…
0
votes
1 answer

Click cardview in recyclerview from fragment in Android Studio

I`m creating a movie app for learning purposes. I am have problem with clicking an cardview to direct me to another activity from fragment. Currently, I have the fragment which displays movies from api with retrofit. the adapter to handle…
0
votes
1 answer

RecyclerView choose every 8th item in list. How can stop it?

There is an recyclerView in my project. Also, I added expandableLayout from a third library. When click layout of it has cardView, it toggle expandable layout. But, for example if click 1st item, it toggle every 8th item in order after 1st item. How…
0
votes
0 answers

Unable to scroll recyclerview content in android app

Problem is I am unable to scroll through my content I have generated through recyclerview and cardview nest inside it as a repeating layout for adapter, but scrolling isn't working by Touch but when I press down keyboard key content is…
0
votes
2 answers

How to hide spinner(progress bar) after download complete?

I'm working on a app that downloads files, I have recyclerview -> cardview (10-20 items), if you click on one the items the process to download the file begins, and at the same time i add a spinner to let user know that the download is in…
Pedro
  • 1,440
  • 2
  • 15
  • 36
0
votes
3 answers

How can I make the cardview's disappear?

When I click on any menu item present in the navigation drawer, the content of the menu item appears below the cards. The cards should disappear and then in their place the content of the menu items should be displayed. The contents of the menu…
0
votes
1 answer

CardView to make a circle background, show oval background

I followed this post and tried to make a transparent circle background around my X verctor Image.
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
0 answers

How to Build Sliding CardView Inside DrawerLayout?

I'm working on creating CardView that are slidable horizontally. I've been searching on Internet and watching tutorials on YouTube for days. After trying those possible solutions and advice, my app either gets errors I couldn't solve or crashes. So,…
Jerry Chen
  • 11,595
  • 5
  • 13
  • 16
0
votes
4 answers

How to center items in a Recyclerview?

I am using RecyclerView with Cardview items inside it. I set the GridLayoutManager to show 2 items at each row and I want it to be centered on all phones like this : expected result But I have currently these : Actual result I tried different…