Android 如何更改SwitchCompat拇指的宽度

Android 如何更改SwitchCompat拇指的宽度,android,xml,android-switch,switchcompat,Android,Xml,Android Switch,Switchcompat,我的问题是关于Android的SwitchCompat 我想要的样式: 但我的交换机的风格是: 我拇指的宽度有问题。(请不要介意轨道大小) 这是我的xml代码: <android.support.v7.widget.SwitchCompat app:switchMinWidth="@dimen/_108px" android:layout_width="@dimen/_108px" android:layout_height="@dimen/_60px"

我的问题是关于Android的
SwitchCompat

我想要的样式:

但我的交换机的风格是:

我拇指的宽度有问题。(请不要介意轨道大小)

这是我的xml代码:

<android.support.v7.widget.SwitchCompat
    app:switchMinWidth="@dimen/_108px"
    android:layout_width="@dimen/_108px"
    android:layout_height="@dimen/_60px"
    android:thumb="@drawable/switch_thumb_selector"
    app:track="@drawable/switch_track_selector" />


android:layout\u width
有助于设置音轨的宽度,
android:layout\u height
有助于设置拇指的高度。但我想设置拇指的宽度。如何设置拇指宽度?

设置android:layout\u width=“wrap\u content”@IntelliJAmiya谢谢,但这不起作用。android:layout\u width适用于音轨宽度:(显示@drawable/switch\u thumb\u选择器代码。谢谢。请查看以下内容: