Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Fields](https://developer.android.com/reference/android/app/Notification.DecoratedCustomViewStyle#inhfields) \| [Ctors](https://developer.android.com/reference/android/app/Notification.DecoratedCustomViewStyle#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/app/Notification.DecoratedCustomViewStyle#inhmethods)

# Notification.DecoratedCustomViewStyle

*** ** * ** ***

` public static class Notification.DecoratedCustomViewStyle `   
` ` ` extends https://developer.android.com/reference/android/app/Notification.Style ` ` `

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.app.Notification.Style](https://developer.android.com/reference/android/app/Notification.Style) ||
|   | ↳ | android.app.Notification.DecoratedCustomViewStyle |

<br />

*** ** * ** ***

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/android/app/Notification.Builder#setCustomContentView(android.widget.RemoteViews)`, `https://developer.android.com/reference/android/app/Notification.Builder#setCustomBigContentView(android.widget.RemoteViews)` and `https://developer.android.com/reference/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/android/app/Notification.Builder#setStyle(android.app.Notification.Style)` like so:

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

<br />

## Summary

### Inherited fields

From class `https://developer.android.com/reference/android/app/Notification.Style` ` protected https://developer.android.com/reference/android/app/Notification.Builder` `https://developer.android.com/reference/android/app/Notification.Style#mBuilder`

<br />

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

### Inherited methods

From class ` https://developer.android.com/reference/android/app/Notification.Style ` ` https://developer.android.com/reference/android/app/Notification` ` https://developer.android.com/reference/android/app/Notification.Style#build()() `

Calls `https://developer.android.com/reference/android/app/Notification.Builder#build()` on the Builder this Style is attached to.
` void` ` https://developer.android.com/reference/android/app/Notification.Style#checkBuilder()() ` ` https://developer.android.com/reference/android/widget/RemoteViews` ` https://developer.android.com/reference/android/app/Notification.Style#getStandardView(int)(int layoutId) ` ` void` ` https://developer.android.com/reference/android/app/Notification.Style#internalSetBigContentTitle(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence title) `

Overrides ContentTitle in the expanded form of the template.
` void` ` https://developer.android.com/reference/android/app/Notification.Style#internalSetSummaryText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence cs) `

Set the first line of text after the detail section in the expanded form of the template.
` void` ` https://developer.android.com/reference/android/app/Notification.Style#setBuilder(android.app.Notification.Builder)(https://developer.android.com/reference/android/app/Notification.Builder builder) ` 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*.

## Public constructors

### DecoratedCustomViewStyle

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

```
public DecoratedCustomViewStyle ()
```

<br />

<br />