如何删除搜索栏拇指填充?

How to remove seek bar thumb padding?

我正在尝试将搜索栏添加到我的应用程序,但是当我这样做时,我在搜索栏拇指中看到了一些填充(见下图)。我怎样才能删除这个填充?

搜索栏的xml代码是

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <SeekBar
        android:id="@+id/seekBar1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="132dp"
        android:max="10000"
        android:paddingLeft="-10dp"
        android:paddingRight="-10dp"
        android:progress="0"
        android:thumbOffset="-10dp" />

</RelativeLayout>

谁能帮我解决这个问题?

这是工作代码。

我这边没有填充。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<SeekBar
    android:id="@+id/seekBar1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_marginBottom="132dp"
    android:max="10000"
    android:progress="0" />

</RelativeLayout>

通过 xml

在 SeekBar 中隐藏您的拇指
 android:thumbTint="@color/transparent"

例如

<SeekBar
android:id="@+id/seekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="false"
android:thumb="@color/gray"
android:thumbTint="@color/transparent" />