Sony Addon SDK public class

SmartWatchNotificationWidgetImage

This project is no longer being supported and will not get any further updates.
extends SmartWatchWidgetImage
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.widget.SmartWatchWidgetImage
  3. com.sonyericsson.extras.liveware.extension.util.widget.SmartWatchNotificationWidgetImage

Class Overview

The class decorates a widget image with notification specific UI components.

Summary

Inherited Fields
From class SmartWatchWidgetImage
protected final Context mContext
protected final BitmapFactory.Options mBitmapOptions
protected final int mOuterWidth
protected final int mOuterHeight
protected final int mInnerWidth
protected final int mInnerHeight
Public Constructors
SmartWatchNotificationWidgetImage(Context context, NotificationWidgetEvent event)

Create notification widget image.

Protected Methods
void applyInnerLayout(LinearLayout innerLayout)
Inherited Methods
From class SmartWatchWidgetImage
SmartWatchWidgetImage setText(java.lang.String text)

Set custom text.

SmartWatchWidgetImage setIconByResourceId(int iconId)

Set widget icon by id.

SmartWatchWidgetImage setIconByUri(java.lang.String iconUri)

Set widget icon by uri.

SmartWatchWidgetImage setInnerLayoutResourceId(int layoutId)

Set custom layout inside the widget frame.

SmartWatchWidgetImage setBadgeCount(int number)

Set number to be shown in upper left badge.

Bitmap getBitmap()

Get the bitmap.

void applyInnerLayout(LinearLayout innerLayout)

Get bitmap inside the frame.

Public Constructors

public SmartWatchNotificationWidgetImage(Context context, NotificationWidgetEvent event)

Create notification widget image.

Parameters
context The context.
event The event.

Protected Methods

protected void applyInnerLayout(LinearLayout innerLayout)

Overrides

applyInnerLayout in SmartWatchWidgetImage

Parameters
innerLayout