ctx.getResources(), R.mipmap.ic_launcher); NotificationCompat.WearableExtender extensaoWear = new NotificationCompat.WearableExtender().setBackground(imgBackground); NotificationCompat.InboxStyle estilo = new NotificationCompat.InboxStyle() .setBigContentTitle(qtdeDeMensagens)
new NotificationCompat.WearableExtender() .setHintHideIcon(true) .setBackground(BitmapFactory.decodeResource(getResources(), R.drawable.bk_androidwear_notification)) .setGravity(Gravity.CENTER_VERTICAL)
.setContentIntentAvailableOffline(true) .addAction(action2) .setBackground(pic); for (Reply reply : repliesList) { intent.setPackage("com.amazmod.service");
private static void extendWearable(NotificationCompat.Builder builder, int type, int color, boolean autoNotify, Context context) { int bmdRes = R.drawable.wear_reminder; if (autoNotify) { bmdRes = R.drawable.wear_auto_notify; } else { if (type == Thing.HABIT) { bmdRes = R.drawable.wear_habit; } else if (type == Thing.GOAL) { bmdRes = R.drawable.wear_goal; } } BitmapDrawable bmd = (BitmapDrawable) ContextCompat.getDrawable(context, bmdRes); Bitmap bm = BitmapUtil.createLayeredBitmap(bmd, color); builder.extend(new NotificationCompat.WearableExtender().setBackground(bm)); }