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

来源:互联网 发布:淘宝客扣费好吓人 编辑:程序博客网 时间:2024/06/07 02:53

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

RelativeLayout.LayoutParams

public static class RelativeLayout.LayoutParams
extendsViewGroup.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的参考视图的起始处。