<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.uilayouttest.MainActivity"
tools:ignore="MergeRootFrame" >
<Button
android:id="@+id/button1"
android:layout_gravity="top"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button2"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button3"
android:layout_gravity="bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>
空間在佈局中的對齊
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Dialog的初級使用
toughboy
2018-09-05 04:45:14
自定義佈局include
toughboy
2018-09-05 04:45:14
ProgressDialog的基本用法
toughboy
2018-09-05 04:45:14
黑馬程序員 安卓基礎學習筆記
toughboy
2018-09-05 04:45:03
黑馬程序員 安卓基礎學習筆記 按鈕
toughboy
2018-09-05 04:45:03
帶圖片的listview寫法
toughboy
2018-09-05 04:45:02