简体   繁体   中英

how to use Java library gabrielemariotti cardslib in Xamarin Android

Hello I have seen google cardview library at this location: https://github.com/gabrielemariotti/cardslib

I am developing application with xamarin android, and willing to use this library in my application using C#, how would i use this in my project?

Thanks in advance.

In general you can install the nuget library Support V7 Cardview, which you can find here: https://www.nuget.org/packages/Xamarin.Android.Support.v7.CardView/

An example how to use that is available on GitHub: https://github.com/xamarin/monodroid-samples/tree/master/android_l/CardViewSample

If you really want to use the CardLib of Gabriele Mariotti, then you should create bindings for the cardslib before you can use it in C#. For more information on how to do that you can take a look at the Xamarin Documentation: http://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_%28.jar%29/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM