C# Класс 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.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LayoutParams ( android arg0 )
LayoutParams ( android arg0, android arg1 )
LayoutParams ( int arg0, int arg1 )

Защищенные методы

Метод Описание
LayoutParams ( global @__env )
setBaseAttributes ( android arg0, int arg1, int arg2 ) : void

Приватные методы

Метод Описание
LayoutParams ( )

Описание методов

LayoutParams() публичный Метод

public LayoutParams ( android arg0 )
arg0 android

LayoutParams() публичный Метод

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

LayoutParams() защищенный Метод

protected LayoutParams ( global @__env )
@__env global

LayoutParams() публичный Метод

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

setBaseAttributes() защищенный Метод

protected setBaseAttributes ( android arg0, int arg1, int arg2 ) : void
arg0 android
arg1 int
arg2 int
Результат void