android:layout_margin:本元素离上下左右间的距离
android:layout_marginStart:本元素离开始的位置的距离
android:layout_marginEnd:本元素离结束位置的距离
android:layout_marginBottom
android:layout_marginTop
android:layout_marginLeft
android:layout_marginRight
eg:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="match_parent">
<LinearLayout
android:layout_width="800dp"
android:layout_height="300dp"
android:layout_margin="100dp"
android:orientation="vertical"
android:background="#ff0000" >
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="200dp"
android:layout_marginBottom="50dp"
android:layout_marginLeft="200dp"
android:layout_marginRight="50dp"
android:background="#00ff00"
/>
</LinearLayout>
<TextView
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginStart="-50dp"
android:layout_marginEnd="50dp"
android:background="#0000ff"
/>
</LinearLayout>
原文:http://blog.csdn.net/laurawan/article/details/18215271