# AbsListView.LayoutParams

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

# AbsListView.LayoutParams

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/widget/AbsListView.LayoutParams "View this page in Kotlin")\|Java

`
public
static


class
AbsListView.LayoutParams
`  
`


``

extends `[ViewGroup.LayoutParams](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.AbsListView.LayoutParams |

<br />

*** ** * ** ***

AbsListView extends LayoutParams to provide a place to hold the view type.

## Summary

| ### Inherited XML attributes |
|------------------------------|---|
| From class[android.view.ViewGroup.LayoutParams](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[android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams) |-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [FILL_PARENT](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#FILL_PARENT) Special value for the height or width requested by a View.   | | `int` | [MATCH_PARENT](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#MATCH_PARENT) Special value for the height or width requested by a View. | | `int` | [WRAP_CONTENT](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#WRAP_CONTENT) Special value for the height or width requested by a View. | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams) |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` public int`                                                                                                                                                           | [height](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#height) Information about how tall the view wants to be.               | | ` public `[LayoutAnimationController.AnimationParameters](https://developer.android.com/reference/android/view/animation/LayoutAnimationController.AnimationParameters) | [layoutAnimationParameters](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#layoutAnimationParameters) Used to animate layouts. | | ` public int`                                                                                                                                                           | [width](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#width) Information about how wide the view wants to be.                 | |

|                                                                                                                                                                ### Public constructors                                                                                                                                                                 ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[LayoutParams](https://developer.android.com/reference/android/widget/AbsListView.LayoutParams#LayoutParams(android.content.Context,%20android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context)` c, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet)` attrs) ` |
| ` `[LayoutParams](https://developer.android.com/reference/android/widget/AbsListView.LayoutParams#LayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams)` source) `                                                                             |
| ` `[LayoutParams](https://developer.android.com/reference/android/widget/AbsListView.LayoutParams#LayoutParams(int,%20int))`(int w, int h) `                                                                                                                                                                                                        |
| ` `[LayoutParams](https://developer.android.com/reference/android/widget/AbsListView.LayoutParams#LayoutParams(int,%20int,%20int))`(int w, int h, int viewType) `                                                                                                                                                                                   |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.view.ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams)` ` |---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void` | ` `[resolveLayoutDirection](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#resolveLayoutDirection(int))`(int layoutDirection) ` Resolve layout parameters depending on the layout direction.                                                                                                                                    | | ` void` | ` `[setBaseAttributes](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams#setBaseAttributes(android.content.res.TypedArray,%20int,%20int))`(`[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray)` a, int widthAttr, int heightAttr) ` Extracts the layout parameters from the supplied attributes. | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](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 `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](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`                                                                  | ` `[wait](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`                                                                  | ` `[wait](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*.                                                                                             | ||

## 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)
```

<br />

<br />

|           Parameters           ||
|---------|-----------------------|
| `c`     | `Context` <br />      |
| `attrs` | `AttributeSet` <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 w, 
                int h)
```

<br />

<br />

|    Parameters     ||
|-----|--------------|
| `w` | `int` <br /> |
| `h` | `int` <br /> |

### LayoutParams

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

```
public LayoutParams (int w, 
                int h, 
                int viewType)
```

<br />

<br />

|        Parameters        ||
|------------|--------------|
| `w`        | `int` <br /> |
| `h`        | `int` <br /> |
| `viewType` | `int` <br /> |