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

RecyclerView: No adapter attached; skipping layout CardView

i'm trying to inflate a CardView with information taken from FireBase. My problem is that the reference to the database read it but the RecyclerView miss to get it... I'm new on Android, i'll aprecite so much your help. This is my Java Class: public…
0
votes
1 answer

How to displayed information on pop up window from the card view

I am developing an app similar to tinder but this is not dating app. I am working on the card view function and have encountered some errors I am unable to solve. Here is the card view function of the app I have successfully coded (for the time…
0
votes
2 answers

Get corner radius on LinearLayout with shadow

I need to apply corner radius to a LinearLayout which also has a background for shadow effect. When I try to add corner radius to the background XML I only get white background on the corners. I will demonstrate what I mean with code and…
Peter
  • 1,848
  • 4
  • 26
  • 44
0
votes
0 answers

How to transform CardView size and form on swipe up or click event?

Is it possible on selected CardView swipe up or click (if swipe up not possible) to make CardView fill ~90% of the screen. And when clicked again, it shrinks down to its original form. The important part is that it has to be on the same view as…
0
votes
1 answer

CardView showing greyscreen in preview?

My Cardview showing greyscreen. Can i know what the reason of these problem? I have tried invalidate cache and restart but its not working This is my cardView
0
votes
2 answers

how to filter the recycler view card view and show that card on top that is as 1st cardView based on some boolean flag?

how to sort/filter recycler view card view and show that card view on top of all card view in android. I have some boolean flag as true on check of true I need to show that particular card on top as 1st card view then others below and how to achieve…
0
votes
3 answers

Android Cardview Focusable

My android app currently uses android cardview. However I want to make the cardview focusable so that it can be used on android tv with a remote. At the moment you cannot see what option you are selecting with a remote as it looks no different to…
0
votes
1 answer

How do I programmatically add multiple ImageView into a CardView in Android?

I'd like to programmatically create ImageViews inside a RecyclerView list of CardViews in my app. At the moment, each CardView had a + button which upon onClick adds the item in the CardView to a database. I'd like to replace the + button with a…
0
votes
2 answers

layout:below not working in RelativeLayout inside CardView

I have a RelativeLayout inside a CardView, with a ImageView and two TextViews. One TextView has to be centered, so it is placed over the ImageView. The other TextView has to be below that TextView, but for some reason unknown to me it places over…
Fustigador
  • 6,339
  • 12
  • 59
  • 115
0
votes
0 answers

Material Design CardView Swipe Like Animation - Is there any material on how to?

I have been trying for a while to find any material on how to create the below animation for the material CardView, but i havent been able to find anything. So does anybody know any library or somewhere that i can read about? More specificly, i am…
Emil
  • 35
  • 7
0
votes
2 answers

OnTouch Listener removes round corners on CardView

I added onTouchListener to my RecyclerView adapter and it works fine with changing the color, but it also removes the round corners of RecyclerView. You can see it in the screenshot. Here is the code: holder.cardViewRemaining.setOnTouchListener((v,…
8kk
  • 140
  • 9
0
votes
0 answers

How to create a cardview with a specific layout using only Java (android studio)

I am making an app similar to facebook where i have a news feed which shows all the posts. However, the number of post in this feed varies with each user, depending on the amount of friends they have and how many posts they have made. I want to…
0
votes
0 answers

Recyclerview in a recyclerview activity

using firebase-ui and some coding I have set up my code to work like this: 1) it retrieves data from firebase (image, text and so on), then it passes them to another activity. 2) the new activity receives datas like strings and shows them. Just to…
0
votes
1 answer

Android cardview first item and last item not showing correctly

So I follow an Android tutorial from ude*y, everything works perfectly, the only problem is the first and last item of cardview not showing correctly.
rizky ramadhan
  • 157
  • 1
  • 2
  • 6
0
votes
1 answer

Dynamic Fragment with CardView in a RecycleViewAdapter

I am totally new in the world of Android development and have some trouble to understand how a RecycleViewAdapter works with a CardView when the CardView is a Fragment. I was trying to understand the example on…