android:layout_above="@id/xxx"  --将控件置于给定ID控件之上android:layout_below="@id/xxx"  --将控件置于给定ID控件之下android:layout_toLeftOf="@id/xxx"  --将控件的右边缘和给定ID控件的左边缘对齐android:layout_toRightOf="@id/xxx"  --将控件的左边缘和给定ID控件的右边缘对齐android:layout_alignLeft="@id/xxx"  --将控件的左边缘和给定ID控件的左边缘对齐android:layout_alignTop="@id/xxx"  --将控件的上边缘和给定ID控件的上边缘对齐android:layout_alignRight="@id/xxx"  --将控件的右边缘和给定ID控件的右边缘对齐android:layout_alignBottom="@id/xxx"  --将控件的底边缘和给定ID控件的底边缘对齐android:layout_alignParentLeft="true"  --将控件的左边缘和父控件的左边缘对齐android:layout_alignParentTop="true"  --将控件的上边缘和父控件的上边缘对齐android:layout_alignParentRight="true"  --将控件的右边缘和父控件的右边缘对齐android:layout_alignParentBottom="true" --将控件的底边缘和父控件的底边缘对齐android:layout_centerInParent="true"  --将控件置于父控件的中心位置android:layout_centerHorizontal="true"  --将控件置于水平方向的中心位置android:layout_centerVertical="true"  --将控件置于垂直方向的中心位置用法demo

更多相关文章

  1. Android控件显示和隐藏
  2. iphone开发之常用控件的使用详解
  3. kotlin初窥之Kotlin Android(安卓)Extensions
  4. Listview的onItemClickListener无法响应的问题
  5. Android知识点记录: 使用代码设置 android 上listView的条目的点
  6. Android(安卓)编程 设计规范
  7. Android(安卓)Layout XML属性
  8. Android的边缘效应的相关类EdgeEffectCompat学习
  9. Android学习之学习路线图

随机推荐

  1. Android(安卓)BroadcastRecevicer广播分
  2. Curso Adapter ListView ContextMenu
  3. Android智能下拉刷新框架-SmartRefreshLa
  4. MTK Android(安卓)G sensor 原理,配置,调试
  5. Android(安卓)declare-styleable:自定义控
  6. Android(安卓)最火框架XUtils之注解机制
  7. 上传多张图片到服务器
  8. Android(安卓)PreferenceActivity简单使
  9. Android上 ExpandableListActivity及Curs
  10. Android中contentDescription属性作用