从水平 ProgressBar 中删除垂直填充 [英] Remove vertical padding from horizontal ProgressBar
本文介绍了从水平 ProgressBar 中删除垂直填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,ProgressBar 在栏本身的上方和下方有一定的填充.有没有办法去掉这个padding,最后只剩下bar?
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?
推荐答案
我使用以下方法解决此问题.
I use the following as a workaround for this issue.
android:layout_marginBottom="-8dp"
android:layout_marginTop="-4dp"
这篇关于从水平 ProgressBar 中删除垂直填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文