本文介绍了卸下水平进度垂直填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,进度条具有上方和下方的杆本身一定填充。有没有办法来消除这种填充,从而只扎在结束了吗?

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"

这篇关于卸下水平进度垂直填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 11:38