# MaterialButtonGroup.LayoutParams

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/button/MaterialButtonGroup.java)

*** ** * ** ***


```
public class MaterialButtonGroup.LayoutParams
```

<br />

*** ** * ** ***

A LinearLayout.LayoutParams implementation for `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup`.

## Summary

| ### Public fields |
|---|---|
| `Drawable` | `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#overflowIcon()` |
| `https://developer.android.com/reference/java/lang/CharSequence` | `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#overflowText()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(ViewGroup.LayoutParams)(LayoutParams p)` |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(LinearLayout.LayoutParams)(LayoutParams source)` |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(MarginLayoutParams)(MarginLayoutParams source)` |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(com.google.android.material.button.MaterialButtonGroup.LayoutParams)(https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams source)` Copy constructor. |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(Context,AttributeSet)(Context context, AttributeSet attrs)` Creates a new set of layout parameters. |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(int,int)(int width, int height)` |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(int,int,float)(int width, int height, float weight)` |
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams#LayoutParams(int,int,float,Drawable,java.lang.CharSequence)( int width, int height, float weight, Drawable overflowIcon, https://developer.android.com/reference/java/lang/CharSequence overflowText )` Creates a new set of layout parameters with the specified width, height, weight, overflow icon and overflow text. |

## Public fields

### overflowIcon

```
public Drawable overflowIcon
```

### overflowText

```
public CharSequence overflowText
```

## Public constructors

### LayoutParams

```
public LayoutParams(LayoutParams p)
```

### LayoutParams

```
public LayoutParams(LayoutParams source)
```

### LayoutParams

```
public LayoutParams(MarginLayoutParams source)
```

### LayoutParams

```
public LayoutParams(MaterialButtonGroup.LayoutParams source)
```

Copy constructor. Clones the values of the source.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/button/MaterialButtonGroup.LayoutParams source` | The layout params to copy from. |

### LayoutParams

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

Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context.

| Parameters |
|---|---|
| `Context context` | the application environment |
| `AttributeSet attrs` | the set of attributes from which to extract the layout parameters' values |

### LayoutParams

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

### LayoutParams

```
public LayoutParams(int width, int height, float weight)
```

### LayoutParams

```
public LayoutParams(
    int width,
    int height,
    float weight,
    Drawable overflowIcon,
    CharSequence overflowText
)
```

Creates a new set of layout parameters with the specified width, height, weight, overflow icon and overflow text.

| Parameters |
|---|---|
| `int width` | the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels |
| `int height` | the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels |
| `float weight` | the weight |
| `Drawable overflowIcon` | the overflow icon drawable |
| `https://developer.android.com/reference/java/lang/CharSequence overflowText` | the overflow text char sequence |