关于AndroidStudio如何添加v7包中的RecyclerView?

  1. 左侧Project视图,在External Libraries下找到appcompat-v7包
    【AndroidStudio-添加RecyclerView包】 AndroidStudio添加v7包中的RecyclerView

  2. 右击appcompat-v7包,打开Library Properties,可看到路径,根据路径找到recyclerview-v7文件夹
    【AndroidStudio-添加RecyclerView包】 AndroidStudio添加v7包中的RecyclerView
    【AndroidStudio-添加RecyclerView包】 AndroidStudio添加v7包中的RecyclerView
    【AndroidStudio-添加RecyclerView包】 AndroidStudio添加v7包中的RecyclerView

  3. 在recyclerview-v7文件夹找到相应的版本号,在app下的build.gradle,添加引用

compile 'com.android.support:recyclerview-v7:26.1.0'

(或在recyclerview-v7文件夹找到jar包,添加到app下的libs文件夹中)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-07-09
  • 2021-05-18
  • 2021-12-06
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2021-12-28
相关资源
相似解决方案