Android 中的图像按钮间距

发布于 2024-09-12 19:29:40 字数 97 浏览 1 评论 0原文

如何设置 ImageButton 的间距?

使用RelativeLayout,我可以将它们并排放置,但我希望它们之间有一个间隙。 如何将按钮放置在屏幕的中央和底部?

How do you space ImageButtons?

With RelativeLayout, I can have them side by side but I want a gap between them.
How do I place the buttons in the center and at the bottom of the screen?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黒涩兲箜 2024-09-19 19:29:40

有了RelativeLayout,我就可以拥有它们
并排但我想要之间有一个间隙
他们。

使用 android:layout_marginTop 和相关属性。

如何将按钮放置在
的中心和底部
屏幕?

android:layout_centerHorizo​​ntal="true"android:layout_alignParentBottom="true"

With RelativeLayout, I can have them
side by side but I want a gap between
them.

Use android:layout_marginTop and related properties.

How do I place the buttons in the
center and at the bottom of the
screen?

android:layout_centerHorizontal="true" and android:layout_alignParentBottom="true"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文