您的位置:首页 > 移动开发 > Android开发

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

2017-06-19 17:15 555 查看

完整内容,请查看: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


已知的直接子类

PercentRelativeLayout.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的参考视图的起始处。 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息