Android SeekBar thumb Customization

前端 未结 3 749
故里飘歌
故里飘歌 2021-01-03 05:08

I want to hide bar and only want to show thumb. I did it with max-height=0dip but it did not completely work. I also want to set text on thumb and create thumb with multiple

3条回答
  •  暖寄归人
    2021-01-03 05:26

    Regarding removing the background, I managed to do this in the following way. Here, the blank drawable is a transparent png of 1x1 pixel

        
    

    You can also change the drawable by using:

    android:thumb="@drawable/icon"
    

    To add text, I guess you'll have to create a custom component

提交回复
热议问题