Remove vertical padding from horizontal ProgressBar

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

    If someone still needs help can try this:

    
    

    Here, the progress bar is inside the ConstraintLayout, and the constraintTop_toTopOf and constraintBottom_toTopOf attributes must be applied to the same element (in this case, it is guideline).

    *** COMPLETE SOLUTION:***

    
    
    
    
    
    
    

提交回复
热议问题