【AndroidStudio-添加RecyclerView包】 AndroidStudio添加v7包中的RecyclerView


關於AndroidStudio如何添加v7包中的RecyclerView?

  1. 左側Project視圖,在External Libraries下找到appcompat-v7包

  2. 右擊appcompat-v7包,打開Library Properties,可看到路徑,根據路徑找到recyclerview-v7文件夾


  3. 在recyclerview-v7文件夾找到相應的版本號,在app下的build.gradle,添加引用

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

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM