如何删除Android按钮正在使用的默认保证金?我希望按钮具有全部宽度(在屏幕边缘和按钮之间根本没有空间),并且它们之间没有空间。我没有设置任何填充,但他们似乎有一个。删除Android按钮的保证金
我使用“Theme.AppCompat.Light.NoActionBar”作为我的应用程序主题父项。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
这是来自按钮背景,最有可能的。 – CommonsWare
您是否使用过提供的解决方案之一? – Geoff
试过他们,但他们不工作,因为我想他们。我结束使用自定义涟漪效应作为背景从这里:http://stackoverflow.com/a/26349261/2456568 – Mike