C# Class android.view.ViewGroup.LayoutParams

LayoutParams are used by views to tell their parents how they want to be laid out.
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:

  • FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), which means that the view wants to be as big as its parent (minus padding)
  • WRAP_CONTENT, which means that the view wants to be just big enough to enclose its content (plus padding)
  • an exact number
There are subclasses of LayoutParams for different subclasses of ViewGroup. For example, AbsoluteLayout has its own subclass of LayoutParams which adds an X and Y value.

Developer Guides

For more information about creating user interface layouts, read the <a href=" guide/topics/ui/declaring-layout.html">XML Layouts developer guide.

Mostra file Open project: JeroMiya/androidmono Class Usage Examples

Public Methods

Method Description
LayoutParams ( android arg0 )
LayoutParams ( android arg0, android arg1 )
LayoutParams ( int arg0, int arg1 )

Protected Methods

Method Description
LayoutParams ( global @__env )
setBaseAttributes ( android arg0, int arg1, int arg2 ) : void

Private Methods

Method Description
LayoutParams ( )

Method Details

LayoutParams() public method

public LayoutParams ( android arg0 )
arg0 android

LayoutParams() public method

public LayoutParams ( android arg0, android arg1 )
arg0 android
arg1 android

LayoutParams() protected method

protected LayoutParams ( global @__env )
@__env global

LayoutParams() public method

public LayoutParams ( int arg0, int arg1 )
arg0 int
arg1 int

setBaseAttributes() protected method

protected setBaseAttributes ( android arg0, int arg1, int arg2 ) : void
arg0 android
arg1 int
arg2 int
return void