Build 1.0_r1(from source)

android.widget
Class LinearLayout.LayoutParams

java.lang.Object
  extended by android.view.ViewGroup.LayoutParams
      extended by android.view.ViewGroup.MarginLayoutParams
          extended by android.widget.LinearLayout.LayoutParams
Direct Known Subclasses:
RadioGroup.LayoutParams, TableLayout.LayoutParams, TableRow.LayoutParams
Enclosing class:
LinearLayout

public static class LinearLayout.LayoutParams
extends ViewGroup.MarginLayoutParams

Per-child layout information associated with ViewLinearLayout.


Field Summary
 int gravity
          Gravity for the view associated with these LayoutParams.
 float weight
          Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams.
 
Fields inherited from class android.view.ViewGroup.MarginLayoutParams
bottomMargin, leftMargin, rightMargin, topMargin
 
Fields inherited from class android.view.ViewGroup.LayoutParams
FILL_PARENT, height, layoutAnimationParameters, width, WRAP_CONTENT
 
Constructor Summary
LinearLayout.LayoutParams(Context c, AttributeSet attrs)
          
LinearLayout.LayoutParams(int width, int height)
          
LinearLayout.LayoutParams(int width, int height, float weight)
          Creates a new set of layout parameters with the specified width, height and weight.
LinearLayout.LayoutParams(ViewGroup.LayoutParams p)
          
LinearLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
          
 
Method Summary
 String debug(String output)
          Returns a String representation of this set of layout parameters.
 
Methods inherited from class android.view.ViewGroup.MarginLayoutParams
setMargins
 
Methods inherited from class android.view.ViewGroup.LayoutParams
setBaseAttributes, sizeToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weight

public float weight
Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.


gravity

public int gravity
Gravity for the view associated with these LayoutParams.

See Also:
Gravity
Constructor Detail

LinearLayout.LayoutParams

public LinearLayout.LayoutParams(Context c,
                                 AttributeSet attrs)


LinearLayout.LayoutParams

public LinearLayout.LayoutParams(int width,
                                 int height)


LinearLayout.LayoutParams

public LinearLayout.LayoutParams(int width,
                                 int height,
                                 float weight)
Creates a new set of layout parameters with the specified width, height and weight.

Parameters:
width - the width, either ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixels
height - the height, either ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixels
weight - the weight

LinearLayout.LayoutParams

public LinearLayout.LayoutParams(ViewGroup.LayoutParams p)


LinearLayout.LayoutParams

public LinearLayout.LayoutParams(ViewGroup.MarginLayoutParams source)

Method Detail

debug

public String debug(String output)
Description copied from class: ViewGroup.LayoutParams
Returns a String representation of this set of layout parameters.

Overrides:
debug in class ViewGroup.LayoutParams
Parameters:
output - the String to prepend to the internal representation
Returns:
a String with the following format: output + "ViewGroup.LayoutParams={ width=WIDTH, height=HEIGHT }"

Build 1.0_r1(from source)

Please submit a feedback, bug or feature