喜我需要KNW如何对齐按钮,文本视图和其他东西,的Android对准水平和垂直
例如当我添加一个按钮到屏幕BT的底部的边缘时我打开屏幕成水平我希望它在同一个地方。这意味着我想成为在屏幕的底部边缘有相同的底部填充。
我怎么能做到这一点
这是按钮的代码
<Button
android:id="@+id/btnEnter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/btn_enter"
android:layout_marginTop="300dp"
android:layout_marginLeft="60dp"
android:textSize="45sp"
android:textColor="#000"
android:fontFamily="serif"
/>
我需要的时候把它的成水平该按钮是在相同的位置
感谢您 问候攀
检查:http://developer.android.com/training/basics/supporting-devices/screens.html – 2014-10-10 06:27:16