Remove vertical padding from horizontal ProgressBar

后端 未结 22 2001
眼角桃花
眼角桃花 2020-11-28 03:30

By default the ProgressBar has a certain padding above and below the bar itself. Is there a way to remove this padding so as to only have the bar in the end?

22条回答
  •  北海茫月
    2020-11-28 04:17

    adding the android:progressDrawable to a layer-list defined in drawable fixed the issue for me. It works by masking the progess bar in a custom drawable

    example implementation described at https://stackoverflow.com/a/4454450/1145905

提交回复
热议问题