Android SeekBar thumb Customization

前端 未结 3 746
故里飘歌
故里飘歌 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:29

    In order to hide the bar, you can set opacity value using hex colors. You just need to add the right prefix. I hid the seekBar using this code:

    android:progressBackgroundTint="#00555555"
    android:progressTint="#00555555"
    

    Where the first two ciphers (i.e. "00") set opaqueness (alpha percentage) and the other six (i.e. "555555") set the color.

    Check this post for more information and a list of hex opacity values: Understanding colors on Android (six characters)

提交回复
热议问题