/**@class android.widget.LinearLayout @extends android.view.ViewGroup A layout that arranges other views either horizontally in a single column or vertically in a single row. <p>The following snippet shows how to include a linear layout in your layout XML file:</p> <pre><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp" android:orientation="horizontal" android:gravity="center"> <!-- Include other widget or layout tags here. These are considered "child views" or "children" of the linear layout --> </LinearLayout></pre> <p>Set {@link android.R.styleable#LinearLayout_orientation android:orientation} to specify whether child views are displayed in a row or column.</p> <p>To control how linear layout aligns all the views it contains, set a value for {@link android.R.styleable#LinearLayout_gravity android:gravity}. For example, the snippet above sets android:gravity to "center". The value you set affects both horizontal and vertical alignment of all child views within the single row or column.</p> <p>You can set {@link android.R.styleable#LinearLayout_Layout_layout_weight android:layout_weight} on individual child views to specify how linear layout divides remaining space amongst the views it contains. See the <a href="https://developer.android.com/guide/topics/ui/layout/linear.html">Linear Layout</a> guide for an example.</p> <p>See {@link android.widget.LinearLayout.LayoutParams LinearLayout.LayoutParams} to learn about other attributes you can set on a child view to affect its position and size in the containing linear layout.</p> @attr ref android.R.styleable#LinearLayout_baselineAligned @attr ref android.R.styleable#LinearLayout_baselineAlignedChildIndex @attr ref android.R.styleable#LinearLayout_gravity @attr ref android.R.styleable#LinearLayout_measureWithLargestChild @attr ref android.R.styleable#LinearLayout_orientation @attr ref android.R.styleable#LinearLayout_weightSum */ var LinearLayout = { /***/ HORIZONTAL : "0", /***/ VERTICAL : "1", /** Don't show any dividers. */ SHOW_DIVIDER_NONE : "0", /** Show a divider at the beginning of the group. */ SHOW_DIVIDER_BEGINNING : "1", /** Show dividers between each item in the group. */ SHOW_DIVIDER_MIDDLE : "2", /** Show a divider at the end of the group. */ SHOW_DIVIDER_END : "4", /**Set how dividers should be shown between items in this layout @param {Number} showDividers One or more of {@link #SHOW_DIVIDER_BEGINNING}, {@link #SHOW_DIVIDER_MIDDLE}, or {@link #SHOW_DIVIDER_END} to show dividers, or {@link #SHOW_DIVIDER_NONE} to show no dividers. */ setShowDividers : function( ) {}, /** */ shouldDelayChildPressedState : function( ) {}, /** @return {Number} A flag set indicating how dividers should be shown around items. @see #setShowDividers(int) */ getShowDividers : function( ) {}, /** @return {Object {android.graphics.drawable.Drawable}} the divider Drawable that will divide each item. @see #setDividerDrawable(Drawable) @attr ref android.R.styleable#LinearLayout_divider */ getDividerDrawable : function( ) {}, /**Set a drawable to be used as a divider between items. @param {Object {Drawable}} divider Drawable that will divide each item. @see #setShowDividers(int) @attr ref android.R.styleable#LinearLayout_divider */ setDividerDrawable : function( ) {}, /**Set padding displayed on both ends of dividers. For a vertical layout, the padding is applied to left and right end of dividers. For a horizontal layout, the padding is applied to top and bottom end of dividers. @param {Number} padding Padding value in pixels that will be applied to each end @see #setShowDividers(int) @see #setDividerDrawable(Drawable) @see #getDividerPadding() */ setDividerPadding : function( ) {}, /**Get the padding size used to inset dividers in pixels @see #setShowDividers(int) @see #setDividerDrawable(Drawable) @see #setDividerPadding(int) */ getDividerPadding : function( ) {}, /**Get the width of the current divider drawable. @hide Used internally by framework. */ getDividerWidth : function( ) {}, /**<p>Indicates whether widgets contained within this layout are aligned on their baseline or not.</p> @return {Boolean} true when widgets are baseline-aligned, false otherwise */ isBaselineAligned : function( ) {}, /**<p>Defines whether widgets contained in this layout are baseline-aligned or not.</p> @param {Boolean} baselineAligned true to align widgets on their baseline, false otherwise @attr ref android.R.styleable#LinearLayout_baselineAligned */ setBaselineAligned : function( ) {}, /**When true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally. @return {Boolean} True to measure children with a weight using the minimum size of the largest child, false otherwise. @attr ref android.R.styleable#LinearLayout_measureWithLargestChild */ isMeasureWithLargestChildEnabled : function( ) {}, /**When set to true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally. Disabled by default. @param {Boolean} enabled True to measure children with a weight using the minimum size of the largest child, false otherwise. @attr ref android.R.styleable#LinearLayout_measureWithLargestChild */ setMeasureWithLargestChildEnabled : function( ) {}, /** */ getBaseline : function( ) {}, /** @return {Number} The index of the child that will be used if this layout is part of a larger layout that is baseline aligned, or -1 if none has been set. */ getBaselineAlignedChildIndex : function( ) {}, /** @param {Number} i The index of the child that will be used if this layout is part of a larger layout that is baseline aligned. @attr ref android.R.styleable#LinearLayout_baselineAlignedChildIndex */ setBaselineAlignedChildIndex : function( ) {}, /**Returns the desired weights sum. @return {Number} A number greater than 0.0f if the weight sum is defined, or a number lower than or equals to 0.0f if not weight sum is to be used. */ getWeightSum : function( ) {}, /**Defines the desired weights sum. If unspecified the weights sum is computed at layout time by adding the layout_weight of each child. This can be used for instance to give a single child 50% of the total available space by giving it a layout_weight of 0.5 and setting the weightSum to 1.0. @param {Number} weightSum a number greater than 0.0f, or a number lower than or equals to 0.0f if the weight sum should be computed from the children's layout_weight */ setWeightSum : function( ) {}, /** */ onRtlPropertiesChanged : function( ) {}, /**Should the layout be a column or a row. @param {Number} orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default value is {@link #HORIZONTAL}. @attr ref android.R.styleable#LinearLayout_orientation */ setOrientation : function( ) {}, /**Returns the current orientation. @return {Number} either {@link #HORIZONTAL} or {@link #VERTICAL} */ getOrientation : function( ) {}, /**Describes how the child views are positioned. Defaults to GRAVITY_TOP. If this layout has a VERTICAL orientation, this controls where all the child views are placed if there is extra vertical space. If this layout has a HORIZONTAL orientation, this controls the alignment of the children. @param {Number} gravity See {@link android.view.Gravity} @attr ref android.R.styleable#LinearLayout_gravity */ setGravity : function( ) {}, /**Returns the current gravity. See {@link android.view.Gravity} @return {Number} the current gravity. @see #setGravity */ getGravity : function( ) {}, /** */ setHorizontalGravity : function( ) {}, /** */ setVerticalGravity : function( ) {}, /** */ generateLayoutParams : function( ) {}, /** */ getAccessibilityClassName : function( ) {}, };