CardView for Android does not import

I got a file with a Card View flag from

sdk\extras\android\m2repository\com\android\support\cardview-v7\21.0.0-rc1 

and I tried an example from link1 and link2

I was able to do for Recycler, but to view the map, he mixed up the xml error for importing android.support.v7.widget.CardView in the XML layout

and detailed error

 error: No resource identifier found for attribute 'cardCornerRadius' in package 'com.cards.cardlayoutui' 
+7
source share
2 answers

Please check out my post on GitHub: https://github.com/lt-tibs1984/CardViewLibrary. Here you will learn how to accept this project and use the downloaded SDK for CardView. I will update this tonight as much as I can.

In fact, the problem is that when you unzip a zip file and import only a jar file, you do not have the resources associated with the map view.

Just download my zip file, import it as existing code into the workspace, and then add classes.jar as a library dependency!

Directions are available at read me.

Refresh

The original draft for this answer is still not relevant, or still exists.

To use Cardview in your project,

add

 implementation 'com.android.support:cardview-v7:28.0.0' 

or when using androidx:

 implementation 'androidx.cardview:cardview:1.0.0' 

into your build.gradle application

0
source

try adding xml file values ​​and follow this guide, maybe this will help

http://treyrobinson.net/blog/android-l-tutorials-part-3-recyclerview-and-cardview/

0
source

Source: https://habr.com/ru/post/972295/


All Articles