Android Button 顶部 底部 去空白解决方案
正常新建一个按钮:
解决方案:
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="按钮" />
这两行代码
android:insetTop="0dp"
android:insetBottom="0dp"