android recyclerview dependency 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

implementation "androidx.recyclerview:recyclerview:1.1.0"
 implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc03"

Example 3: recyclerview dependency

implementation 'com.android.support:recyclerview-v7:23.1.1'

Example 4: 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"

Example 5: how to add recyclerview support in android studio

dependencies {
    implementation 'com.android.support:recyclerview-v7:28.0.0'
}

Example 6: recyclerview dependency

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"

Tags:

Java Example