How to change Width of Android's Switch track?

后端 未结 4 1921
醉梦人生
醉梦人生 2020-12-29 05:34

I\'m going crazy with this tiny problem. I have a \'switch\' Form widget, but no matter how much I try, I cannot make it narrower. Even if I have one character instead of \'

4条回答
  •  天命终不由人
    2020-12-29 05:44

    Here is my solution. I removed the texts, set the padding of the track and define the switchMinWidth properties. This is my xml:

    
    

提交回复
热议问题