Android - How to change default SeekBar thickness?

后端 未结 6 800
春和景丽
春和景丽 2021-01-03 18:04

I have this SeekBar:

        

        
6条回答
  •  灰色年华
    2021-01-03 18:41

    You can use the Slider provided by the Material Components Library.

    Use the app:trackHeight="xxdp" (the default value is 4dp) to change the height of the track bar.

        
    

    If you want to change also the thumb radius you can use the app:thumbRadius attribute:

            
               
    

    It requires the version 1.2.0 of the library.

提交回复
热议问题