|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.ViewGroup.LayoutParams
android.view.ViewGroup.MarginLayoutParams
android.widget.LinearLayout.LayoutParams
public static class LinearLayout.LayoutParams
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 |
|---|
public float weight
public int gravity
Gravity| Constructor Detail |
|---|
public LinearLayout.LayoutParams(Context c,
AttributeSet attrs)
public LinearLayout.LayoutParams(int width,
int height)
public LinearLayout.LayoutParams(int width,
int height,
float weight)
width - the width, either ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixelsheight - the height, either ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixelsweight - the weightpublic LinearLayout.LayoutParams(ViewGroup.LayoutParams p)
public LinearLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
| Method Detail |
|---|
public String debug(String output)
ViewGroup.LayoutParams
debug in class ViewGroup.LayoutParamsoutput - the String to prepend to the internal representation
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||