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
3 answers

Cardview won't change my current activity (Intent won't work)

I'm creating a language app as homework for school in android. Right now I'm setting up some clickable CardViews (which are in "LevelsHub") to take the user to another view (called "ProfileActivity") but for some reason INTENT is not working the way…
Sarquamon
  • 49
  • 2
  • 8
0
votes
1 answer

How to open a link using a CardView

What I want to do is to click on a CardView send me directly to the browser with a link already inserted as I can achieve that would greatly appreciate your help :).
Vicente NT
  • 21
  • 4
0
votes
0 answers

Android Retrofit: How to display JSON data into one cardview only?

I have one last problem in displaying my output. What I want is that per grammar error there will be a message and list of suggestion per cardview. This my code in the result adapter: public class ResultAdapter extends…
0
votes
2 answers

How I can clipping vertical line in a CardView?

I want clipping vertical line view in radius CardView like this pic:
Zardchoobe
  • 57
  • 1
  • 7
0
votes
1 answer

Is this possible if the user tap on the list item then it should directed to separate layout containing the cardsViews for multiple TextViews

Hey guys I have initialized the list view in my android quotation application. Now I want when the user tape on for example the life quotes then all the quotes of life should show on cardView separately. I don't know how to show each quote on each…
Sufyan Hashmi
  • 21
  • 1
  • 10
0
votes
0 answers

Android RecyclerView doesn't show cardview on the screen

I have a database, and I am trying to show the columns on cardview on my app. Nothing wrong database side I guess. I have checked it, for example I can add items to the database. I can login-register. But when I add my items, I should be seeing…
workingonit
  • 23
  • 1
  • 5
0
votes
1 answer

How can i resolve the variable i was trying to pass to a cardviewadapter that i tried to extract from sqlite cursor

The ide tells me it cannot resolve the symbols that ive put in the ProjectsCardAdapter parameters. the symbols are variables inside a try block that contains string type from cursor I tried to initialize the string array variables outside the try…
0
votes
1 answer

Android does not show view as line in CardView

hey guys I have a problem to show a line in CardView. I want to separate image and title with a line.I use view for line in CardView. in the preview its ok but it does not show when I run the application.this is my codes: I did this in another…
john
  • 345
  • 1
  • 4
  • 20
0
votes
1 answer

How to Remove Cardview?

Im begginer for android studio, I have cardview at my home acvity, thats cardview just give information if email still not verified. And email has been verified, cardview must not show at home activity My question is, how we can remove cardview from…
dody.ac
  • 77
  • 1
  • 4
0
votes
1 answer

How set background Image in recyclerview

I want to add a drawable in my recyclerview to cover whole the card view but it is set to each card separately I want one single background PS: See image for further clarification I have add background in cardview and recyclerview but nothing…
Tanveer Ahmed
  • 426
  • 1
  • 4
  • 15
0
votes
1 answer

CardView isn't shown correctly on recyclerView

I want to have a cardview on a recycler view.The problem is that the cards are not aligned correctly and they have a big space between them(see image).I don't know if it's because i've done them with fragments(first time i'm using them because i'm…
Alex
  • 1,816
  • 5
  • 23
  • 39
0
votes
1 answer

how do I open another fragment after selecting the image in recycler view?

I'm am trying to open a new fragment by selecting the image from the card view within the recycler view. Preferable using both adapter and fragment classes. How do I do that? This is my adapter class: public class CorporateAdapter extends…
0
votes
1 answer

Applying the rounded corners to a CardView inner element

I have a CardView with an inner layout which has a different background color than the CardView. I want the inner layout to be aligned to one side of the CardView and take the 2 rounded corners of that side.
Bialy
  • 905
  • 2
  • 12
  • 22
0
votes
1 answer

cardview with bottom border

I wanted a cardview with only bottom border. So i found a solution : toolbar_background.xml :
Femn Dharamshi
  • 527
  • 1
  • 9
  • 25
0
votes
1 answer

Empty cardview when scrolling

I have problem with Cardview inside RecyclerView. Card contains ImageView and Textbox. At the beggining all cards are on the screen, but after scrolling down and scrolling up on the screen between are empty spaces. cardview layout
1 2 3
99
100