【发布时间】:2014-12-09 06:26:34
【问题描述】:
如果我设置了背景颜色,使用这种风格的按钮之间的边距会比没有它的时候小很多。为什么?我该如何解决这个问题?
<style name="RemoteButton">
<!-- Leaving this in makes the buttons very close together, without it, the margins increase -->
<item name="android:background">#d6d7d7</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:textColor">#556699</item>
<item name="android:textSize">20dp</item>
<item name="android:layout_margin">3dp</item>
</style>
【问题讨论】:
-
您是否尝试过设置 android:includeFontPadding="false" 因为每种字体都有自己的自定义填充。检查并回复
标签: android android-layout android-studio android-xml android-ui