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

# DecoratedCustomViewStyle

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/app/Notification.DecoratedCustomViewStyle "View this page in Java")

```
open class DecoratedCustomViewStyle : Notification.Style
```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [android.app.Notification.Style](https://developer.android.com/reference/kotlin/android/app/Notification.Style) ||
|   | ↳ | [android.app.Notification.DecoratedCustomViewStyle](https://developer.android.com/reference/kotlin/android/app/Notification.DecoratedCustomViewStyle#) |

Notification style for custom views that are decorated by the system

Instead of providing a notification that is completely custom, a developer can set this style and still obtain system decorations like the notification header with the expand affordance and actions.

Use `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#setCustomContentView(android.widget.RemoteViews)`, `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#setCustomBigContentView(android.widget.RemoteViews)` and `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#setCustomHeadsUpContentView(android.widget.RemoteViews)` to set the corresponding custom views to display.

To use this style with your Notification, feed it to `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#setStyle(android.app.Notification.Style)` like so:

```kotlin
Notification notif = new Notification.Builder()
      .setSmallIcon(R.drawable.ic_stat_player)
      .setLargeIcon(albumArtBitmap))
      .setCustomContentView(contentView);
      .setStyle(<b>new Notification.DecoratedCustomViewStyle()</b>)
      .build();
  
```

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.DecoratedCustomViewStyle#DecoratedCustomViewStyle()()` <br /> |

| Inherited functions ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/app/Notification.Style` |---|---| | `https://developer.android.com/reference/kotlin/android/app/Notification!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#build()()` Calls `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#build()` on the Builder this Style is attached to. Note: Calling build() multiple times returns the same Notification instance, so reusing a builder to create multiple Notifications is discouraged. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#checkBuilder()()` <br /> | | `https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#getStandardView(kotlin.Int)(layoutId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetBigContentTitle(kotlin.CharSequence)(title: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Overrides ContentTitle in the expanded form of the template. This defaults to the value passed to setContentTitle(). <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetSummaryText(kotlin.CharSequence)(cs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the first line of text after the detail section in the expanded form of the template. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#setBuilder(android.app.Notification.Builder)(builder: https://developer.android.com/reference/kotlin/android/app/Notification.Builder!)` <br /> | ||

| Inherited properties ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/app/Notification.Style` |---|---| | `https://developer.android.com/reference/kotlin/android/app/Notification.Builder!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#mBuilder:android.app.Notification.Builder` <br /> | ||

## Public constructors

### DecoratedCustomViewStyle

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

```
DecoratedCustomViewStyle()
```