我有图片通知。现在我想更新通知和旋转图像,但我的方法不起作用:
RemoteViews notificationLayoutExpanded = new RemoteViews(packageName, R.layout.notification_expanded);
// ...
notificationLayoutExpanded.setInt(R.id.notification_arrow, "setRotation", 90);
它抛出:
android.widget.RemoteViews$ActionException: view: android.widget.ImageView doesn't have method: setRotation(int)
有什么想法吗?