android,textView文字与drawableLeft图片无法对齐

textView文字相对于控件有内边距,导致看起来和本来设置对齐的图片不是对齐的,这时可用android:includeFontPadding="false"属性去掉textview内边距,使他们对齐。

去掉textview或者button的空白: android:padding="0dp"

猜你喜欢

转载自blog.csdn.net/m0_38058826/article/details/80844377