Android SeekBar thumb gets clipped/cut off

前端 未结 5 2068
深忆病人
深忆病人 2020-12-08 04:07

When using a custom thumb drawable with a SeekBar view, the thumb drawable is clipped at the left and right edges of the view.

How can I fix this behavi

5条回答
  •  佛祖请我去吃肉
    2020-12-08 05:12

    Just for clarification.

    On some places I have seen

     android:thumbOffset="8dp"
    

    and some

    android:thumbOffset="8px"
    

    so I looked at the source code. this is the original style

    
    

    from

    https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/styles.xml

提交回复
热议问题