Most visited

Recently visited

Added in API level 1

AbsoluteLayout.LayoutParams

public static class AbsoluteLayout.LayoutParams
extends ViewGroup.LayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.widget.AbsoluteLayout.LayoutParams


与AbsoluteLayout关联的每个子布局信息。 有关Absolute Layout Attributes支持的所有子视图属性的列表,请参见Absolute Layout Attributes

Summary

Inherited XML attributes

From class android.view.ViewGroup.LayoutParams

Inherited constants

From class android.view.ViewGroup.LayoutParams

Fields

public int x

视图组内水平或X的位置。

public int y

视图组内垂直或Y的位置。

Inherited fields

From class android.view.ViewGroup.LayoutParams

Public constructors

AbsoluteLayout.LayoutParams(int width, int height, int x, int y)

用指定的宽度,高度和位置创建一组新的布局参数。

AbsoluteLayout.LayoutParams(Context c, AttributeSet attrs)

创建一组新的布局参数。

AbsoluteLayout.LayoutParams(ViewGroup.LayoutParams source)

Public methods

String debug(String output)

返回此组布局参数的字符串表示形式。

Inherited methods

From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Fields

x

Added in API level 1
int x

视图组内水平或X的位置。

y

Added in API level 1
int y

视图组内垂直或Y的位置。

Public constructors

AbsoluteLayout.LayoutParams

Added in API level 1
AbsoluteLayout.LayoutParams (int width, 
                int height, 
                int x, 
                int y)

用指定的宽度,高度和位置创建一组新的布局参数。

Parameters
width int: the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
height int: the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
x int: the X location of the child
y int: the Y location of the child

AbsoluteLayout.LayoutParams

Added in API level 1
AbsoluteLayout.LayoutParams (Context c, 
                AttributeSet attrs)

创建一组新的布局参数。 这些值是从提供的属性集和上下文中提取的。 映射到这组布局参数的XML属性是:

  • layout_x: the X location of the child
  • layout_y: the Y location of the child
  • All the XML attributes from ViewGroup.LayoutParams

Parameters
c Context: the application environment
attrs AttributeSet: the set of attributes from which to extract the layout parameters values

AbsoluteLayout.LayoutParams

Added in API level 1
AbsoluteLayout.LayoutParams (ViewGroup.LayoutParams source)

Parameters
source ViewGroup.LayoutParams

Public methods

debug

Added in API level 1
String debug (String output)

返回此组布局参数的字符串表示形式。

Parameters
output String: the String to prepend to the internal representation
Returns
String a String with the following format: output + "ViewGroup.LayoutParams={ width=WIDTH, height=HEIGHT }"

Hooray!