如何创建类似图片的自定义搜索栏custom seekbar。任何想法,TNX。 Android版Kotlin
Android搜寻栏可以通过提供您自己的画图来进行搜寻栏轨迹(搜寻栏进度),搜寻栏拇指和搜寻栏刻度线进行自定义。您可以使用progressDrawable属性将自定义可绘制对象应用于搜索栏。
<SeekBar
android:id="@+id/seekBar"
. . .
android:theme = "@style/yourStyle"
android:thumb="@drawable/custom_thumb"
android:progressDrawable="@drawable/custom_progress"/>