android.widget
public
static
class
android.widget.FrameLayout.LayoutParams
Per-child layout information for layouts that support margins.
See FrameLayout Layout Attributes
for a list of all child view attributes that this class supports.
Summary
Attribute name |
Related methods |
|
android:layout_marginBottom |
setMargins(int,int,int,int)
|
Specifies extra space on the bottom side of this view. |
android:layout_marginLeft |
setMargins(int,int,int,int)
|
Specifies extra space on the left side of this view. |
android:layout_marginRight |
setMargins(int,int,int,int)
|
Specifies extra space on the right side of this view. |
android:layout_marginTop |
setMargins(int,int,int,int)
|
Specifies extra space on the top side of this view. |
|
|
|
Value |
|
int |
FILL_PARENT |
Special value for the height or width requested by a View. |
-1 |
0xffffffff |
int |
WRAP_CONTENT |
Special value for the height or width requested by a View. |
-2 |
0xfffffffe |
Fields
public |
|
|
int |
gravity |
The gravity to apply with the View to which these layout parameters
are associated. |
public |
|
|
int |
bottomMargin |
The bottom margin in pixels of the child. |
public |
|
|
int |
leftMargin |
The left margin in pixels of the child. |
public |
|
|
int |
rightMargin |
The right margin in pixels of the child. |
public |
|
|
int |
topMargin |
The top margin in pixels of the child. |
Public Constructors
|
|
|
|
|
void |
setMargins(int left, int top, int right, int bottom) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Fields
public
int
gravity
The gravity to apply with the View to which these layout parameters
are associated.
Public Constructors
public
FrameLayout.LayoutParams(int width, int height)
public
FrameLayout.LayoutParams(int width, int height, int gravity)
Creates a new set of layout parameters with the specified width, height
and weight.