android-cardview Questions
5
Solved
Is it possible to have feature like drag and drop between two different RecyclerView?
I found library for drag and drop within RecyclerView. Please help me to improve this functionality.
Cavil asked 17/4, 2015 at 4:45
6
Solved
I have a RecyclerView which is in a CardView that has a couple of TextViews. The CardView has a OnClickListener set and is fired off when clicking on the TextViews, but does not fire when clicking ...
Rositaroskes asked 24/5, 2015 at 3:51
3
I find the way Border(1.dp, Color.Black) can not work with the border property of Card view, what's the best way to work around of it?
Devaluation asked 22/10, 2020 at 2:53
17
I have a RecyclerView that is inside a CardView. The CardView has a height of 500dp, but I want to shorten this height if the RecyclerView is smaller.
So I wonder if there is any listener that is c...
Scalar asked 22/5, 2015 at 13:3
8
Solved
I am implementing card view but I can't find any border option to set a border on it.
here is my card.xml:
<android.support.v7.widget.CardView android:layout_marginTop="10dp"
android:...
Albertalberta asked 12/4, 2016 at 13:39
4
Solved
I've created the simple card in jetpack compose, Here I set elevation but it shows a type mismatch.
Card(
shape = RoundedCornerShape(20.dp),elevation = 10.dp
) {
Box(modifier = Modifier.height(2...
Absinthe asked 12/12, 2022 at 18:8
28
Solved
The CardView has an attribute card_view:cardBackgroundColor to define the background color.
This attribute works fine.
At the same time there isn't a method to change the color dynamically.
I've ...
Moriyama asked 25/10, 2014 at 9:44
4
Solved
I'm planning to develop an app that shows some dynamic data inside a recyclerCardView. So i decided add a recyclerView called CheckBoxRecyclerView
inside my main recyclerView. This is my code for m...
Monica asked 2/1, 2016 at 18:25
8
Solved
I wanted to try out the new toys that google gave us and I've run into some trouble.
Here is my build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'android-L'
bu...
Livery asked 27/6, 2014 at 15:46
2
Shadows seem to cut off on some of my CardView usages.
Any idea why? looks like removing the padding on the parent resolves the issue, but I do want the padding. And I don't want to use margin on t...
Tunnage asked 26/3, 2021 at 0:26
4
Solved
I have designed a layout with map fragment and recyclerView.
Each recyclerView item is cardview (I have specified give the xml layout).
The problem is RecyclerView item doesn't fill screen width....
Coneflower asked 18/11, 2015 at 4:42
10
Solved
I use RecyclerView with GridLayoutManager and have each item as CardView.
Unfortunately, the CardView here does not seem to change its background color. I tried in layout and programmatically as we...
Gauze asked 9/1, 2017 at 16:53
8
Solved
I want to do transparent background on CardView.
I know backgroundColor but i have image on my Layout.
Do you know how do it? Or something which work as cardview but i will set a transparent backg...
Guitar asked 20/2, 2015 at 12:57
9
Solved
I have a layout XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
and...
Brood asked 30/12, 2015 at 6:7
5
Solved
I'm using android:paddingLeft and android:paddingTop to set the padding for the new CardView widget but it doesn't work.
I can set the margin for all the controls inside the CardView as a workaro...
Footer asked 22/7, 2014 at 19:31
14
Solved
I want to corner only the top of a cardview.
I used below property and it is rounding all the corner.
I want to show an overlap of all cards
card_view:cardCornerRadius="4dp"
here is my layout
...
Edward asked 24/12, 2015 at 14:21
3
I'm extending CardView class because I want to create custom view for each row of my list view.
this is my xml layout
<com.mojiapps.myquran.items.TranslationDownloadItemView xmlns:android="...
Adobe asked 5/7, 2015 at 20:48
3
I am developing an app where there is a recyclerview with some cards and would like to create a zoom in effect when the user touches the card and zoom out when release the touch. The previous and n...
Mezcaline asked 6/9, 2019 at 22:24
7
Solved
I have a card and want to add content to it. How should I add images and also Text to the card? Here is my xml code:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.Co...
Mucker asked 14/11, 2017 at 10:58
11
Solved
I am using MaterialCardView as my cardview layout. Now, Android-studio started showing me that instead of current implementation "com.google.android.material:material:1.0.0", I should update to 1.1...
Snips asked 12/2, 2020 at 6:29
4
I want to create Cardview using jetpack compose but i am not able to find any
example.
Friel asked 17/10, 2019 at 12:11
2
Solved
I have a RecyclerView, when RecyclerView item clicked, want to open a popup window which contains another RecyclerView. It is almost done, but in popup window, cardviews don't appear. I can't figur...
Vaulting asked 14/9, 2016 at 14:1
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
5
Solved
I want to re-create the image below with a CardView. To achieve this, I created a gradient file (btn_gradient.xml) and then proceeded to create the CardView.
CardView implementation:
<androi...
Puke asked 16/4, 2019 at 18:21
14
Solved
I'm trying to get a CardView to display the ripple effect when touched by setting the android:backgound attribute in the activity XML file as described here on the Android Developers page, but it i...
Honna asked 15/11, 2014 at 4:10
1 Next >
© 2022 - 2025 — McMap. All rights reserved.