【发布时间】:2015-01-13 12:11:17
【问题描述】:
我正在使用下面的代码在磨损中生成通知。
new Notification.WearableExtender()
.setBackground(BitmapFactory.decodeResource(context.getResources(), R.drawable.example_big_picture))
.setContentIcon(R.drawable.image)
.setContentIconGravity(Gravity.START))
但setContentIcon 只能用于设置可绘制图像。有没有办法将bitmap 设置为内容图标(我从服务器获取位图)。或者有没有其他方法可以达到同样的效果?任何帮助,将不胜感激。提前致谢。
【问题讨论】:
标签: android android-notifications wear-os