public abstract class SrnPrimaryTemplate
extends com.samsung.android.sdk.richnotification.SrnTemplate
PrimaryTemplates contain the primary information of a SrnRichNotification
Modifier and Type | Method and Description |
---|---|
void |
setBackgroundColor(int backgroundColor)
Sets a background color for this template.
|
void |
setBackgroundImage(SrnImageAsset backgroundImage)
Sets a background image for this template.
|
public void setBackgroundImage(SrnImageAsset backgroundImage)
If a template is header-style, a background image will be used as a background of a header. And, rest of the screen will be filled with a background color.
If a template is not header-style, a background image will be used as a background of a template. And a background color will be ignored.
backgroundImage
- The SrnImageAsset
for the backgroundpublic void setBackgroundColor(int backgroundColor)
If a template is not header-style and a background image is set. A background color will be ignored.
backgroundColor
- The rgb value for the backgroundCopyright © Samsung Electronics, Co., Ltd. All rights reserved.