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

Cardview is missing on some devices

i create two cardview correctly but when i run on my phone card view activity is Right but when run in other phone card view is displace please help me to solve this problem Screenshot
-3
votes
1 answer

how to sort card view in recycler view in android

I have some API response as below: [ { accountType: a, accountId: 1, accountStatus: active, isDefault: false, accountName: texas1 }, { accountType: b, …
hema
  • 1
  • 4
-3
votes
1 answer

How do I dynamically populate a ListView with custom made CardViews?

I'm trying to create a list with custom rows, but these rows are in fact CardViews. The CardViews have multiple textviews, half of which are user-set through a previous prompt, and an…
Cryosec
  • 1
  • 1
-3
votes
1 answer

Click CardView to open new activity

How to open new Activity by clicking [cardview] I am beginner and i have no idea of using [CardView] as a button. Help me i need example code
M Zaid Hayat
  • 11
  • 10
-3
votes
1 answer

How to add onclick to cardview in android to open link in webview

I have list of cards in gridview all are static i want to add onclick to each card and open a link in webview when clicked different link for different card.
-3
votes
1 answer

Display a Captured Image on CardView

I am making an application using CardView / RecyclerView I made the UI looks like I want to and with hardcoded data it works really well. Here is an image of my CardView So.What I want to do is : Capture a picture Display that picture in my…
-3
votes
1 answer

Manifest Merger error when adding dependencies for CardView.

Whenever I try to add dependencies for CardView, Android Studio is showing the following error: [> Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value…
-3
votes
1 answer

Add cardview programmatically from xml

I´m writing an Android application and have a list of comments which is being fetched from a list, but i want to add it dynamically, by writing it in a edittext and sending it with a button. Is it possible to add a new cardView and enter data that i…
-4
votes
1 answer

How to create pointer UI in android studio?

I want to create "first time user guide" like this image, now I can make it like this image. So, I want the card be able to point to another view like the first image. Questions : How could I add the pointer shape? How could I use that pointer…
-4
votes
1 answer

I want to use some Arabic letters in card view as text in my android app

I want to use some Arabic letters in card view as text in my android app, how to achieve this. Anyone please help me.
sacp
  • 11
  • 4
-4
votes
2 answers

How to setVisibilty of CardView layout of a single card without affecting other Cards

Hi I am have a question regarding CardViews in a RecyclerView.My CardViews basically has 2 segments i.e. the base card and the expanded card. My OnClick just sets the setVisibility property of each segment to either GONE or VISIBLE. Right now my…
-5
votes
1 answer

parsing json and display with recycler view and card view

I need to parse json then view it in cards in recycler view. I need help in doing this with easy steps as I am still a junior. one important note I have to say is that I need to make this view in a fragment not an activity. Thank you in…
M.Khaled
  • 49
  • 1
  • 9
-6
votes
3 answers

cardview in flutter layout

I want the code to design a cardview in flutter with all properties:
Murtaza
  • 41
  • 1
  • 1
  • 7
1 2 3
37
38