Ste*_*lla 5 xml android 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:thumb="@drawable/switch_thumb_selector"
app:track="@drawable/switch_track_selector" />
Run Code Online (Sandbox Code Playgroud)
android:layout_width有助于设置轨道的宽度,并android:layout_height有助于设置拇指的高度。但我想设置拇指的宽度。如何设置拇指宽度?
| 归档时间: |
|
| 查看次数: |
4854 次 |
| 最近记录: |