cardview Questions

3

I have an OnClickListener on a CardView. The listener only works when I tap on a region outside the content(TextViews/ImageViews). I also have a linear layout inside my CardView. I wanted it to wor...
Softener asked 11/7, 2018 at 17:34

3

Solved

I need to have a curved bottom view for Toolbar or CardView. What I've tried: bg_toolbar.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.co...
Biggin asked 30/8, 2019 at 8:35

2

I want to set the backgroundColor of a card view with an argb color. But the result is like this: <androidx.cardview.widget.CardView android:id="@+id/infoCard" android:layout_width="match_p...
Putamen asked 8/4, 2020 at 23:43

1

I'm trying to make this: and this is what I'm getting: I can't make the background blur and transparent at the same time, how could I do that? when I try to do it with "alpha" it remove...
Potful asked 17/10, 2020 at 0:21

2

I am creating a set of 5 cards with the style of Google Now Cards. I am focusing first with the layout in general. I'm using CardView and RecyclerView and what I want to achieve is something like...
Insufficiency asked 4/11, 2016 at 11:20

5

Android cardview is showing unnecessary border around the card. I have tried different things but I am not able to remove it. It happens when I give the card a custom background color. When I remov...
Adequacy asked 7/7, 2017 at 7:7

2

My card view elevation stopped working and showing shadow after I updated my android studio 3.3 and migrating my project to androidx artifacts. <androidx.cardview.widget.CardView android:layou...
Phytopathology asked 21/1, 2019 at 16:6

3

Solved

I'd like to know the difference between both widgets android.support.v7.widget.CardView which is added using Android Studio IDE components palette and com.google.android.material.card.MaterialCardV...

6

Solved

I am putting the cardview inside scrollview, we expect to see that at the bottom, the border should be shown(see pic below). But its not. The problem is that I cannot scroll to the bottom to see th...
Bircher asked 25/7, 2016 at 16:14

2

Solved

I want to design a custom component card, an image attached in the card, title section will be overleaping on the image section, and description will be added below image section. how to overleap a...
Betroth asked 11/2, 2020 at 11:54

4

Solved

I have a CardView aligned bottom to screen, destpite the elevation I want to add more shadow to top of the CardView. I've tried with android:shadowColor="#000" android:shadowDx="0" android:sha...
Untinged asked 12/1, 2017 at 14:19

4

I have read several answers on how to align a card view horizontally. I am trying to achieve the following: Desired Result This is so far the code I have written (I have followed around 20 answer...
Hypoderm asked 28/9, 2017 at 21:48

2

Solved

I need to add space between CardView. I tried to use the card_view:cardUseCompatPadding and it doesn't work. Any help? <RelativeLayout android:layout_width="match_parent" android:layout_hei...
Molehill asked 21/8, 2016 at 17:11

3

Solved

I have no idea why my cards appear grey on my API 21 and 19 emulator. I have built RecyclerViews with CardViews before and they were white. I don't change the background color anywhere. It appears ...
Xanthin asked 1/1, 2018 at 12:55

4

Solved

Below is my code I have multiple cardview inside LinearLayout but after build I'm unable to scroll it. Half of the card view is hiding. There is a screen shot I want to scroll all of my cardvi...
Ketubim asked 13/12, 2017 at 12:29

3

I would like to implement a screen where I have a Card view containing a RecyclerView. The CardView should of the same height of the content of the recycler view, this means that if the RecyclerVi...
Congruous asked 23/8, 2016 at 13:45

2

Solved

What is the default margin of Support CardView so I can define margin for my situation? <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:car...
Mons asked 20/4, 2017 at 16:36

1

Solved

How can I custom the ImageCardView to be circular in Leanback?
Antonioantonius asked 14/3, 2017 at 15:12

2

Solved

I searched a lot to find a direct and clear solution for I think a popular problem but unfortunately I couldn't find it. We want to have a list of cardviews so each card bind to a specific data an...
Boyhood asked 7/7, 2016 at 3:0

1

I have a short question. How is it possible to make headers for groups on cards on a recyclerview like of the image below. Thanks a lot for answers
Eaten asked 12/1, 2017 at 16:14

3

I want to develop List like this picture I had used to RecylerView ItemDecorator for overlap. But it's overlapping without shadow. the screen & decorator code is below public class Overla...
Resoluble asked 10/11, 2016 at 4:46

1

Solved

In my project, I am using RecyclerView in my listing using CardView. In my listing I have to set the corner radius of CardView dynamically based on device. Is there any way to set cardview corner ...
Deliquesce asked 4/7, 2016 at 10:43

0

I can't find the right solution. What I want is to render a GridView with CardView in each cell. For some reason I am getting this error: java.lang.NullPointerException on the fragment class, on th...
Housewarming asked 30/6, 2016 at 15:9
1

© 2022 - 2024 — McMap. All rights reserved.