LinearLayout-線性版面配置
FrameLayout-框架版面配置
TableLayout-表格版面配置
AbsoluteLayout-絕對位置版面配置
RelativeLayout-相對位置版面配置
android:layout_width="fill_parent"--佔用全部的螢幕
android:layout_width="wrap_content" 依照內容決定大小(適可而止)
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:layout_height="fill_parent"--填滿整個上層元件
android:src="@drawable/robot"--圖片的位置
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="6dip" 與右邊元件的距離
android:layout_above="@+id/icon" //之上的控制項
android:singleLine="true" //一行
android:ellipsize="marquee" 橢圓的
android:layout_toRightOf="@id/icon" 排列在icon元件的右邊
android:layout_above="@id/secondLine" 排列在secondLine的上面
android:layout_below="@id/secondLine" 排列在secondLine的下面
沒有留言:
張貼留言