Android7.0中文文档(API)-- RelativeLayout.LayoutParams

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RelativeLayout.LayoutParams.html

RelativeLayout.LayoutParams

public static class RelativeLayout.LayoutParams
extends ViewGroup.MarginLayoutParams

java.lang.Object
   ↳android.view.ViewGroup.LayoutParams
    ↳android.view.ViewGroup.MarginLayoutParams
     ↳android.widget.RelativeLayout.LayoutParams
已知的直接子类


Per-child layout information associated with RelativeLayout.
与RelativeLayout相关的每个子布局的信息。

摘要


XML属性

android:layout_above将此视图放置在指定ID的参考视图的上方。 
android:layout_alignBaseline将此视图的基线放置在指定ID的参考视图的基线上。 
android:layout_alignBottom使此视图与指定ID的参考视图底边沿对齐。 
android:layout_alignEnd使此视图与指定ID的参考视图结束边沿对齐。 
android:layout_alignLeft使此视图与指定ID的参考视图左边沿对齐。 
android:layout_alignParentBottom如果设置为true,则此视图与其父视图的底边沿对齐。 
android:layout_alignParentEnd如果设置为true,则此视图与其父视图的结束边沿对齐。 
android:layout_alignParentLeft如果设置为true,则此视图与其父视图的左边对齐。 
android:layout_alignParentRight如果设置为true,则此视图与其父视图的右边对齐。 
android:layout_alignParentStart如果设置为true,则此视图与其父视图的开始边沿对齐。 
android:layout_alignParentTop如果设置为true,则此视图与其父视图的顶边沿对齐。 
android:layout_alignRight使此视图与指定ID的参考视图右边沿对齐。 
android:layout_alignStart使此视图与指定ID的参考视图开始边沿对齐。 
android:layout_alignTop使此视图与指定ID的参考视图顶边沿对齐。 
android:layout_alignWithParentIfMissing如果设置为true, 在layout_toLeftOf、layout_toRightOf等属性中找不到参考项的情况下, 则父项作为参考项来使用。 
android:layout_below将此视图放置在指定ID的参考视图的下方。 
android:layout_centerHorizontal如果为true, 则此子项在其父项内水平居中。 
android:layout_centerInParent如果为true, 则此子项在其父项内水平和垂直居中。 
android:layout_centerVertical如果为true, 则此子项在其父项内垂直居中。 
android:layout_toEndOf将此视图的起始边沿放置到指定ID的参考视图的末尾。 
android:layout_toLeftOf将此视图的右边沿放置到指定ID的参考视图的左边。 
android:layout_toRightOf将此视图的左边沿放置到指定ID的参考视图的右边。 
android:layout_toStartOf将此视图的结束边沿放置到指定ID的参考视图的起始处。 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值