Android添加RecyclerView依赖库

在app/build.gradle文件中dependencies里面添加

def recyclerview_version ="1.1.0"
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
// For control over item selection of both touch and mouse driven selection
implementation "androidx.recyclerview:recyclerview-selection:1.1.0-alpha05"

然后同步
在xml里写<androidx.recyclerview.widget.RecyclerView />即可

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 1024 设计师:白松林 返回首页