androidmaterial-designmaterial-components-androidmaterial-componentsandroid-slider

What dependency I need to add to use com.google.android.material.slider.Slider


What dependency I need to add to my Android Studio project to use this component? And, in general, how to know what dependency I need to add to use a Google Material component?


Solution

  • You have to use the Material Components Library:

    implementation 'com.google.android.material:material:1.2.0-rc01'
    

    The Slider components was introduced with the version 1.2.0-alpha01