How to import RecyclerView for Android L-preview

前端 未结 22 1617
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 14:55

Trying to use the new RecyclerView from the support library. I downloaded the 20 update for the support library using the SDK manager.

I\'ve added the jar file to th

22条回答
  •  春和景丽
    2020-12-02 15:46

    If You have Compiled SDK Version 22.2.0 then add below dependency for recycler view and cardview additional for support of cardView

    // for including all the libarary in the directory lib
    compile fileTree(include: ['*.jar'], dir: 'libs')
    // for support appcompat
    compile 'com.android.support:appcompat-v7:22.2.0'
    //for including google support design (it makes possible of implementing material design theme from 2.3 and higher)
    `compile 'com.android.support:design:22.2.0'

    for adding the recycler view use following dependency
    compile 'com.android.support:recyclerview-v7:22.2.0'


    After that click on Build->rebuild project and you are done.

提交回复
热议问题