我需要添加什么依赖项才能使用 com.google.android.material.slider.Slider

The*_*rix 2 android material-design material-components material-components-android android-slider

我需要向 Android Studio 项目添加什么依赖项才能使用此组件?一般来说,如何知道我需要添加什么依赖项才能使用 Google Material 组件?

Gab*_*tti 6

您必须使用材料组件库

implementation 'com.google.android.material:material:1.2.0-rc01'
Run Code Online (Sandbox Code Playgroud)

组件Slider随版本一起引入1.2.0-alpha01