android:layout_alignParentRight="true"
使当前控件的右端和父控件的右端对齐。这里属性值只能为true或false,默认false。
android:layout_marginLeft="10dip"
使当前控件左边空出相应的空间。
android:layout_toLeftOf="@id/ok"
使当前控件置于id为ok的控件的左边。
android:layout_alignTop="@id/ok"
使当前控件与id控件的上端对齐。


padding表示填充,margin表示边距
可通过android:padding属性进行设置,4个方向的边距属性为android:paddingLeft, android:paddingRight, android:paddingTop, and android:paddingBottom.


结论:
*android:layout_marginBottom
*android:layout_marginLeft
*android:layout_marginRight
*android:layout_marginTop
上面几个属性的值是根据下面的相对位置的对象的值来做计算的,如果没有相对的对象就以总体布局来计算
*android:layout_below
*android:layout_above
*android:layout_toLeftOf
*android:layout_toRightOf
*android:layout_alignTop


*android:layout_centerHrizontal //是否支持横屏或竖屏
*android:layout_centerVertical //这个根据单词的意思:中心垂直
*android:layout_centerInparent //
android:layout_centerInParent="true"//居中在父对象
android:layout_centerInParent="false" ... 浏览器不支持多窗口显示,意思就是说所有页面在单一窗口打开,这样避免了页面布局控制显示问题
下面的相对于父的相对位置
*android:layout_alignParentBottom
*android:layout_alignParentLeft
*android:layout_alignParentRight
*android:layout_alignParentTop
*android:layout_alignWithParentIfMissing

来自http://www.eoeandroid.com/archiver/tid-23220.html
http://www.cnblogs.com/llopx/archive/2010/03/31/1701238.html

更多相关文章

  1. Android(安卓)众多的布局属性详解
  2. Android(安卓)众多的布局属性详解
  3. LinearLayout布局实现垂直水平居中
  4. android与j2me移植之clipRect
  5. android 组件属性描述
  6. Android图表控件MPAndroidChart——曲线图LineChart的使用(多条曲
  7. [置顶] android 菜单的详细介绍
  8. android 面试3:如何将一个Activity设置成窗口的样式
  9. Android(安卓)Studio--EditText属性

随机推荐

  1. Multitasking the android way
  2. Android(安卓)列表对话框
  3. android之shape使用
  4. Android中ListView的优化问题
  5. android,bindService实例
  6. Android改变MAC地址
  7. android sdk
  8. Stuff about Android
  9. android 蓝牙各种UUID
  10. Android(安卓)自动更新代码