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(5) - 控件(View)之TextView, Button, ImageButt
  2. Android View的属性
  3. EditText属性大全
  4. 关于progressbar进度条的显示风格及一些属性的应用
  5. Android ImageView控件的setMaxWidth、setMaxHeight不起作用
  6. Android之TextView属性大全
  7. 如何在XML设定android控件的颜色(十六进制颜色码)
  8. 安卓控件属性
  9. Mono登录界面记住密码的控件

随机推荐

  1. Android驱动使用JNI调用
  2. Android(安卓)- Android(安卓)Studio 安
  3. Android使用RecyclerView实现列表功能
  4. Android图表应用分享
  5. Android(安卓)倒计时功能,完美解决系统时
  6. android 线程大集合
  7. Android(安卓)Activity的四种加载模式
  8. android 自定义view 实现定制二维码扫描
  9. Android中startService的使用及Service生
  10. Android的电话功能介绍