Class Overview
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
|
[Expand]
Inherited XML Attributes |
From class
android.view.ViewGroup.MarginLayoutParams
| Attribute Name |
Related Method |
Description |
| 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. |
|
From class
android.view.ViewGroup.LayoutParams
|
| Fields |
|
public
int |
gravity |
The gravity to apply with the View to which these layout parameters
are associated. |
|
[Expand]
Inherited Methods |
From class android.view.ViewGroup.MarginLayoutParams
|
void
|
setMargins(int left, int top, int right, int bottom)
Sets the margins, in pixels.
|
|
From class android.view.ViewGroup.LayoutParams
|
From class java.lang.Object
|
Object
|
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
|
|
boolean
|
equals(Object o)
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
|
|
void
|
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver.
|
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of java.lang.Class which represents the class
of the receiver.
|
|
int
|
hashCode()
Returns an integer hash code for the receiver.
|
|
final
void
|
notify()
Causes one thread which is wait ing on the receiver to be
made ready to run.
|
|
final
void
|
notifyAll()
Causes all threads which are wait ing on the receiver to
be made ready to run.
|
|
String
|
toString()
Returns a string containing a concise, human-readable description of the
receiver.
|
|
final
void
|
wait(long time, int frac)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait(long time)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait()
Causes the thread which sent this message to be made not ready to run
pending some change in the receiver (as indicated by notify
or notifyAll).
|
|
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.