如何在滑块上执行操作(移动光标)?
如何检查滑块值?
是否有任何现有的功能?
滑块看起来像这样:
<com.google.android.material.slider.Slider
android:id="@+id/sliderRating"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stepSize="1"
android:valueFrom="1.0"
android:valueTo="5.0" />
Run Code Online (Sandbox Code Playgroud)
和浓缩咖啡检查:onView(withId(R.id.sliderRating)).check( -> TODO <- )