Androidボタンが使用しているデフォルトのマージンを削除するにはどうすればよいですか?私は、ボタンの幅(画面の端とボタンの間にスペースが全くない)と、それらの間にスペースがないようにします。私はパディングを設定していませんが、パディングがあるようです。Androidボタンからマージンを削除する
私は、テーマテーマの親として "Theme.AppCompat.Light.NoActionBar"を使用しています。 X方向の
<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
これに提供されたソリューションの1つを使用しましたか? – Geoff
彼らを試してみましたが、私は彼らが欲しいのと同じように動作しません。私はここから背景としてカスタムリップル効果を使用して終了しました:http://stackoverflow.com/a/26349261/2456568 – Mike