问题描述
我希望整个进度栏为白色,但无法弄清楚该如何做。这就是我现在拥有的:
<SeekBar
android:id="@+id/seek_bar"
android:layout_width="match_parent"
android:paddingTop="10dp"
android:thumbTint="@color/black"
android:progresstint="@color/white"
android:layout_height="wrap_content"
android:layout_marginLeft="28dp"
android:layout_marginRight="28dp"
android:gravity="center_horizontal"
/>
这会导致这种情况-但我也希望搜索栏的右侧(其余进度)也为白色。
解决方法
是您要找的东西吗?
#Data
df <- structure(list(Date = c("02/06/2019","03/06/2019","04/06/2019","05/06/2019"),x = c(23L,0L,54L,62L),y = c(45L,72L,102L,21L),Total = c(68L,156L,83L)),class = "data.frame",row.names = c(NA,-4L))
,
您可以在材料组件库中使用Slider
:
<com.google.android.material.slider.Slider
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:trackColor="@color/white"
app:thumbColor="@color/black"/>