Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited XML Attrs](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#inhattrs) \| [Inherited Constants](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#inhconstants) \| [Fields](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#lfields) \| [Inherited Fields](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#inhfields) \| [Ctors](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#pubctors) \| [Methods](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#inhmethods)

# AbsoluteLayout.LayoutParams

*** ** * ** ***

` public static class AbsoluteLayout.LayoutParams `   
` ` ` extends https://developer.android.com/reference/android/view/ViewGroup.LayoutParams ` ` `

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams) ||
|   | ↳ | android.widget.AbsoluteLayout.LayoutParams |

<br />

*** ** * ** ***

Per-child layout information associated with AbsoluteLayout. See `https://developer.android.com/reference/android/R.styleable#AbsoluteLayout_Layout` for a list of all child view attributes that this class supports.

## Summary

### Inherited XML attributes

From class `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` [`android:layout_height`](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#attr_android:layout_height) Specifies the basic height of the view. [`android:layout_width`](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#attr_android:layout_width) Specifies the basic width of the view.

### Inherited constants

From class `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` `int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#FILL_PARENT`

Special value for the height or width requested by a View.
`int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#MATCH_PARENT`

Special value for the height or width requested by a View.
`int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#WRAP_CONTENT`

Special value for the height or width requested by a View.

| ### Fields ||
|---|---|
| ` public int` | `https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#x` The horizontal, or X, location of the child within the view group. |
| ` public int` | `https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#y` The vertical, or Y, location of the child within the view group. |

### Inherited fields

From class `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams` ` public int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#height`

Information about how tall the view wants to be.
` public https://developer.android.com/reference/android/view/animation/LayoutAnimationController.AnimationParameters` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#layoutAnimationParameters`

Used to animate layouts.
` public int` `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#width`

Information about how wide the view wants to be.

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#LayoutParams(android.content.Context,%20android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context c, https://developer.android.com/reference/android/util/AttributeSet attrs) ` Creates a new set of layout parameters. |
| ` https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#LayoutParams(android.view.ViewGroup.LayoutParams)(https://developer.android.com/reference/android/view/ViewGroup.LayoutParams source) ` <br /> |
| ` https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#LayoutParams(int,%20int,%20int,%20int)(int width, int height, int x, int y) ` Creates a new set of layout parameters with the specified width, height and location. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/widget/AbsoluteLayout.LayoutParams#debug(java.lang.String)(https://developer.android.com/reference/java/lang/String output) ` <br /> |

### Inherited methods

From class ` https://developer.android.com/reference/android/view/ViewGroup.LayoutParams ` ` void` ` https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#resolveLayoutDirection(int)(int layoutDirection) `

Resolve layout parameters depending on the layout direction.
` void` ` https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#setBaseAttributes(android.content.res.TypedArray,%20int,%20int)(https://developer.android.com/reference/android/content/res/TypedArray a, int widthAttr, int heightAttr) `

Extracts the layout parameters from the supplied attributes.
From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Fields

### x

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int x
```

The horizontal, or X, location of the child within the view group.

<br />

### y

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int y
```

The vertical, or Y, location of the child within the view group.

<br />

## Public constructors

### LayoutParams

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public LayoutParams (Context c, 
                AttributeSet attrs)
```

Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context. The XML attributes mapped to this set of layout parameters are:

- `layout_x`: the X location of the child
- `layout_y`: the Y location of the child
- All the XML attributes from `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams`

<br />

<br />

| Parameters ||
|---|---|
| `c` | `Context`: the application environment <br /> |
| `attrs` | `AttributeSet`: the set of attributes from which to extract the layout parameters values <br /> |

### LayoutParams

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public LayoutParams (ViewGroup.LayoutParams source)
```

<br />

<br />

| Parameters ||
|---|---|
| `source` | `ViewGroup.LayoutParams` <br /> |

### LayoutParams

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public LayoutParams (int width, 
                int height, 
                int x, 
                int y)
```

Creates a new set of layout parameters with the specified width, height and location.

<br />

| Parameters ||
|---|---|
| `width` | `int`: the width, either `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#MATCH_PARENT`, `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#WRAP_CONTENT` or a fixed size in pixels <br /> |
| `height` | `int`: the height, either `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#MATCH_PARENT`, `https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#WRAP_CONTENT` or a fixed size in pixels <br /> |
| `x` | `int`: the X location of the child <br /> |
| `y` | `int`: the Y location of the child <br /> |

## Public methods

### debug

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String debug (String output)
```

<br />

<br />

| Parameters ||
|---|---|
| `output` | `String` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |