Androidアプリ開発 ボタンにマージンを設定する
別にボタンでなくてもいいんですが、何か要素にマージン(外側に、スペースをあける)を設定する方法です。
android:layout_marginBottom="5dp"
のように設定します。
paddingがpaddingBottomとかでよいので、marginBottomとかでよさそうですが、layout_marginBottomとする必要があります。
//具体例
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="15dip"
android:textSize="24sp"
android:layout_marginBottom="5dp"
/>
