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 

更多相关文章

  1. 转载:android 各种xml资源的引用方式
  2. 自定义ListView中的分割线
  3. Android(安卓)View的属性
  4. WebView及js
  5. android 界面布局-各个布局的属性介绍
  6. 系出名门Android(5) - 控件(View)之TextView, Button, ImageButt
  7. Android(安卓)五种布局简单介绍
  8. Android基础知识之Manifest文件的组织结构
  9. RelativeLayout

随机推荐

  1. 【Android】多语言Values
  2. android之spinner背景、字体颜色
  3. Android动态加载jar/dex
  4. Android : 输入设备键值从底层到应用层的
  5. Android之SurfaceView简介(三)
  6. Android脚本插件系列(一):安卓国际化多语
  7. Android 应用程序基础(Application Fundam
  8. Android(安卓)后台服务
  9. Android入门:使用Android自带媒体库读取MP
  10. 【android 文件的基本操作】