Support for Android (cardView, RecyclerView) support in older versions with target kitkat

Can we use cardview-v7-21.0.0 library support libraries in older versions? How to use the Android support library (cardView, RecyclerView) in older versions in android using eclipse.

+6
source share
2 answers

As described in the official link :

Each support library is backward compatible with a specific level of the Android API.

For instance,

  • support v4 : minSdk = 4
  • v7 appcompat library : minSdk = 7
  • v7 recyclerview library : minSdk = 7
  • v7 CardView library : minSdk = 7

Today you can use cardview-v7-22.1.0.

This support library is a resource library. For customization in Eclipse you can follow the official guide .

Hovewer, I suggest you use Android Studio .

If you use Eclipse with ADT, keep in mind that Android Studio is now the official IDE for Android, so you need to upgrade to Android Studio to get all the latest IDE updates.

To configure in Android Studio, just add this line to your dependencies:

 compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:cardview-v7:22.1.1' 
+6
source

Yes, you can use it in a lower version. Check out this answer .

You can also use this library of materials. , which supports viewing maps up to 2.3+.

My suggestion was to use Android studio, as it is much easier to add libraries to it.

0
source

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


All Articles