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
1 answer

CardView colapsses my AS app at runtime, how can I use CardView appropriately?

I have a simple application which collapses as I run it. When I remove the CardView view the app runs appropriately. How can I add the CardView view appropriately? I suspect that the right decleration of the CardView view should be different then:…
J. Doe
  • 299
  • 3
  • 12
0
votes
2 answers

using cardview on top of recycler view crashes system

Why does using large images using cardview crash the android system? I used 1280 X 600 images for cardview, but launching the app after install crashes the system presents a out of memory error from the logcat. I had atleast 400MB of RAM while…
juztcode
  • 1,196
  • 2
  • 21
  • 46
0
votes
0 answers

CardView Dependency Linking Failure

I want to display a dialog box to display a message along with two buttons (SignIn and Close). But it's giving me a Resource Linking Failed error. though I have a dependency of cardview in my build gradle file (app). Application runs with zero…
0
votes
2 answers

Recyclerview Card Item Onclick Kotlin

I want to create a new intent/activity when the user clicks on a cardview respectively and i was wondering how does one do it in kotlin. i noticed most tutorials are in java and i'm a student who did not learn java. package…
0
votes
5 answers

How to create a layout with different types of cards?

I'm trying to develop an application which will show stats. The data will be from multiple APIs and is returned as a JSONArray. I'm confused on, Should I create separate recyclerview (s) for each card, since the data is from different list/models OR…
0
votes
1 answer

how can I implement ui the same as on the image

I am developing news app and I want to implement constrainlayout inside CardView and achieve ui the same as image below but I could achieve what I want below my xml file where I have implemented constrainlayout inside cardview
0
votes
3 answers

How to fix my onClick cardView that is returning other figures

I have a recycler that is showing a list of items, there price and status. When I click on a card, I want it to show the price of the item that I have clicked on. However whenever, I click. The card returns the data of other cards and no the…
user12078296
0
votes
2 answers

How can I implement a RecyclerView and a CardView into a fragment?

I'm very new to Android Studio and I'm building an app that has a sidebar with icons that lead to fragments. After following a couple of tutorials, the sidebar is implemented and the icons each lead to a fragment. In one of the fragments I'd like to…
0
votes
0 answers

How to prelaod webpages in android and save them to objects that can be given to viewholder to display the webpages in a cardview?

I am trying to make an android app which lets user search a query using SearchView and then displays the results of various websites(not more than 5) like google, youtube, quora etc. in form of cardviews. How can I do that? please tell me any other…
0
votes
1 answer

Android Constraint Layout using Flow with elevation and cornor radius

Is it possible to create a constraint layout with elevation, corner radius etc without using Cardview ? Constraint layout has a "constraintlayout.helper.widget.Flow" that nicely packs the widgets but not sure if it is possible to make it look…
0
votes
1 answer

How to implement cardview in a fragment?

I have a fragment in which i have already implemented a recyclerview at the top part off the screen which holds cardview, now i want to create another recyclerview which also adds cardview to the bottom part of the screen in the same fragment.…
0
votes
1 answer

Cardview shows shadow as margin in API < 21

I using androidx in my project. in android api 21 and above all thing is good but in below that cardView don't work properly. please see images: in android API > 21 : and in API 19: is CardView work only in api 21 and above? my xml file is: …
Hadi Ahmadi
  • 1,924
  • 2
  • 17
  • 38
0
votes
1 answer

Reduce gap between card view item

I am developing app where I am using CardView with RecyclerView. I want to reduce the space between two card items. Want to specify the width of cardview.(Don't want to set width to MATCH_PARENT) below is my code - I have done trying with…
0
votes
1 answer

Card view with Fab Button like Material bottom App bar

I can able to make a card view with a fab button. I can anchor the fab button in card view but here I want to make a card view which will look like BottomAppBar (Material designing). Code
0
votes
1 answer

Android: RecyclerView's CardView Not Showing Every Time

I have a RecyclerView in MainActivity that shows a list of CardViews and that is working properly. A click on the CardView finishes the RecyclerView Activity and launches a Detail Activity that shows the clicked on CardView in a new RecyclerView…
AJW
  • 1,578
  • 3
  • 36
  • 77