Remove vertical padding from horizontal ProgressBar

后端 未结 22 2006
眼角桃花
眼角桃花 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:12

    One trick is to add negative margins to your progress bar.

    Below is an example of the XML code, assuming it's on top of your screen:

    
    

提交回复
热议问题