喜我需要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