/**@class android.widget.RelativeLayout @extends android.view.ViewGroup A Layout where the positions of the children can be described in relation to each other or to the parent. <p> Note that you cannot have a circular dependency between the size of the RelativeLayout and the position of its children. For example, you cannot have a RelativeLayout whose height is set to {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT WRAP_CONTENT} and a child set to {@link #ALIGN_PARENT_BOTTOM}. </p> <p><strong>Note:</strong> In platform version 17 and lower, RelativeLayout was affected by a measurement bug that could cause child views to be measured with incorrect {@link android.view.View.MeasureSpec MeasureSpec} values. (See {@link android.view.View.MeasureSpec#makeMeasureSpec(int, int) MeasureSpec.makeMeasureSpec} for more details.) This was triggered when a RelativeLayout container was placed in a scrolling container, such as a ScrollView or HorizontalScrollView. If a custom view not equipped to properly measure with the MeasureSpec mode {@link android.view.View.MeasureSpec#UNSPECIFIED UNSPECIFIED} was placed in a RelativeLayout, this would silently work anyway as RelativeLayout would pass a very large {@link android.view.View.MeasureSpec#AT_MOST AT_MOST} MeasureSpec instead.</p> <p>This behavior has been preserved for apps that set <code>android:targetSdkVersion="17"</code> or older in their manifest's <code>uses-sdk</code> tag for compatibility. Apps targeting SDK version 18 or newer will receive the correct behavior</p> <p>See the <a href="{@docRoot}guide/topics/ui/layout/relative.html">Relative Layout</a> guide.</p> <p> Also see {@link android.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams} for layout attributes </p> @attr ref android.R.styleable#RelativeLayout_gravity @attr ref android.R.styleable#RelativeLayout_ignoreGravity */ var RelativeLayout = { /***/ TRUE : "-1", /** Rule that aligns a child's right edge with another child's left edge. */ LEFT_OF : "0", /** Rule that aligns a child's left edge with another child's right edge. */ RIGHT_OF : "1", /** Rule that aligns a child's bottom edge with another child's top edge. */ ABOVE : "2", /** Rule that aligns a child's top edge with another child's bottom edge. */ BELOW : "3", /** Rule that aligns a child's baseline with another child's baseline. */ ALIGN_BASELINE : "4", /** Rule that aligns a child's left edge with another child's left edge. */ ALIGN_LEFT : "5", /** Rule that aligns a child's top edge with another child's top edge. */ ALIGN_TOP : "6", /** Rule that aligns a child's right edge with another child's right edge. */ ALIGN_RIGHT : "7", /** Rule that aligns a child's bottom edge with another child's bottom edge. */ ALIGN_BOTTOM : "8", /** Rule that aligns the child's left edge with its RelativeLayout parent's left edge. */ ALIGN_PARENT_LEFT : "9", /** Rule that aligns the child's top edge with its RelativeLayout parent's top edge. */ ALIGN_PARENT_TOP : "10", /** Rule that aligns the child's right edge with its RelativeLayout parent's right edge. */ ALIGN_PARENT_RIGHT : "11", /** Rule that aligns the child's bottom edge with its RelativeLayout parent's bottom edge. */ ALIGN_PARENT_BOTTOM : "12", /** Rule that centers the child with respect to the bounds of its RelativeLayout parent. */ CENTER_IN_PARENT : "13", /** Rule that centers the child horizontally with respect to the bounds of its RelativeLayout parent. */ CENTER_HORIZONTAL : "14", /** Rule that centers the child vertically with respect to the bounds of its RelativeLayout parent. */ CENTER_VERTICAL : "15", /** Rule that aligns a child's end edge with another child's start edge. */ START_OF : "16", /** Rule that aligns a child's start edge with another child's end edge. */ END_OF : "17", /** Rule that aligns a child's start edge with another child's start edge. */ ALIGN_START : "18", /** Rule that aligns a child's end edge with another child's end edge. */ ALIGN_END : "19", /** Rule that aligns the child's start edge with its RelativeLayout parent's start edge. */ ALIGN_PARENT_START : "20", /** Rule that aligns the child's end edge with its RelativeLayout parent's end edge. */ ALIGN_PARENT_END : "21", /** */ shouldDelayChildPressedState : function( ) {}, /**Defines which View is ignored when the gravity is applied. This setting has no effect if the gravity is <code>Gravity.START | Gravity.TOP</code>. @param {Number} viewId The id of the View to be ignored by gravity, or 0 if no View should be ignored. @see #setGravity(int) @attr ref android.R.styleable#RelativeLayout_ignoreGravity */ setIgnoreGravity : function( ) {}, /**Get the id of the View to be ignored by gravity @attr ref android.R.styleable#RelativeLayout_ignoreGravity */ getIgnoreGravity : function( ) {}, /**Describes how the child views are positioned. @return {Number} the gravity. @see #setGravity(int) @see android.view.Gravity @attr ref android.R.styleable#RelativeLayout_gravity */ getGravity : function( ) {}, /**Describes how the child views are positioned. Defaults to <code>Gravity.START | Gravity.TOP</code>. <p>Note that since RelativeLayout considers the positioning of each child relative to one another to be significant, setting gravity will affect the positioning of all children as a single unit within the parent. This happens after children have been relatively positioned.</p> @param {Number} gravity See {@link android.view.Gravity} @see #setHorizontalGravity(int) @see #setVerticalGravity(int) @attr ref android.R.styleable#RelativeLayout_gravity */ setGravity : function( ) {}, /** */ setHorizontalGravity : function( ) {}, /** */ setVerticalGravity : function( ) {}, /** */ getBaseline : function( ) {}, /** */ requestLayout : function( ) {}, /** */ generateLayoutParams : function( ) {}, /** @hide */ dispatchPopulateAccessibilityEventInternal : function( ) {}, /** */ getAccessibilityClassName : function( ) {}, };