Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
502 views
in Technique[技术] by (71.8m points)

android support(cardView, RecyclerView)library in older versions with target kitkat

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

As described in the official link:

Each Support Library is backward-compatible to a specific Android API level.

For example the

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

Today you can use the cardview-v7-22.1.0.

This support library is a library with resources. To setup in Eclipse you can follow the official guide.

Hovewer, I suggest you using Android Studio.

If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates.

To setup in Android Studio just add this line in your dependencies:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...