how to add recyclerview dependency in android studio code example

Example 1: androidx recyclerview dependency

dependencies {
    implementation "androidx.recyclerview:recyclerview:1.1.0"
    // For control over item selection of both touch and mouse driven selection
    implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc01"
}

Example 2: recyclerview dependency

// recyclerView
   
    implementation "androidx.recyclerview:recyclerview:1.1.0"
    
 // For control over item selection of both touch and mouse driven selection
    
    implementation "androidx.recyclerview:recyclerview-selection:1.1.0"

Tags:

Java Example