首页 🍔Android-Kotlin

在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 />即可




文章评论