|
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
public static class ViewGroup.LayoutParams
LayoutParams are used by views to tell their parents how they want to be
laid out. See
ViewGroup Layout Attributes
for a list of all child view attributes that this class supports.
The base LayoutParams class just describes how big the view wants to be for both width and height. For each dimension, it can specify one of:
| Field Summary | |
|---|---|
static int |
FILL_PARENT
Special value for the height or width requested by a View. |
int |
height
Information about how tall the view wants to be. |
LayoutAnimationController.AnimationParameters |
layoutAnimationParameters
Used to animate layouts. |
int |
width
Information about how wide the view wants to be. |
static int |
WRAP_CONTENT
Special value for the height or width requested by a View. |
| Constructor Summary | |
|---|---|
ViewGroup.LayoutParams()
Used internally by MarginLayoutParams. |
|
ViewGroup.LayoutParams(Context c,
AttributeSet attrs)
Creates a new set of layout parameters. |
|
ViewGroup.LayoutParams(int width,
int height)
Creates a new set of layout parameters with the specified width and height. |
|
ViewGroup.LayoutParams(ViewGroup.LayoutParams source)
Copy constructor. |
|
| Method Summary | |
|---|---|
String |
debug(String output)
Returns a String representation of this set of layout parameters. |
protected void |
setBaseAttributes(TypedArray a,
int widthAttr,
int heightAttr)
Extracts the layout parameters from the supplied attributes. |
protected static String |
sizeToString(int size)
Converts the specified size to a readable String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FILL_PARENT
public static final int WRAP_CONTENT
public int width
public int height
public LayoutAnimationController.AnimationParameters layoutAnimationParameters
| Constructor Detail |
|---|
public ViewGroup.LayoutParams(Context c,
AttributeSet attrs)
layout_width: the width, either an exact value,
WRAP_CONTENT or FILL_PARENTlayout_height: the height, either an exact value,
WRAP_CONTENT or FILL_PARENT
c - the application environmentattrs - the set of attributes from which to extract the layout
parameters' values
public ViewGroup.LayoutParams(int width,
int height)
width - the width, either FILL_PARENT,
WRAP_CONTENT or a fixed size in pixelsheight - the height, either FILL_PARENT,
WRAP_CONTENT or a fixed size in pixelspublic ViewGroup.LayoutParams(ViewGroup.LayoutParams source)
source - The layout params to copy from.ViewGroup.LayoutParams()
| Method Detail |
|---|
protected void setBaseAttributes(TypedArray a,
int widthAttr,
int heightAttr)
a - the style attributes to extract the parameters fromwidthAttr - the identifier of the width attributeheightAttr - the identifier of the height attributepublic String debug(String output)
output - the String to prepend to the internal representation
protected static String sizeToString(int size)
size - the size to convert
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||