如何居中的Andr​​oid布局内的视图?视图、布局、Andr、oid

由网友(恰好心动)分享简介:我想把布局在屏幕的中心。 I want to put layout in center of the screen. 推荐答案第1步:总结无论是你想在一个全屏幕在屏幕中央 RelativeLayout的 Step #1: Wrap whatever it is you want centered on the...

我想把布局在屏幕的中心。

I want to put layout in center of the screen.

推荐答案

第1步:总结无论是你想在一个全屏幕在屏幕中央 RelativeLayout的

Step #1: Wrap whatever it is you want centered on the screen in a full-screen RelativeLayout.

步骤2:把那 RelativeLayout的机器人:layout_centerInParent =真正的属性

第三步:有没有第3步

阅读全文

相关推荐

最新文章