Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你如何间隔 ImageButtons?
使用RelativeLayout,我可以将它们并排放置,但我希望它们之间有一个间隙。如何将按钮放置在屏幕中央和底部?
使用RelativeLayout,我可以将它们并排放置,但我希望它们之间有一个间隙。
使用android:layout_marginTop和相关属性。
android:layout_marginTop
如何将按钮放置在屏幕中央和底部?
android:layout_centerHorizontal="true"和android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"