I have notification with image. Now I want to update notification and rotate this image, but my method doesn't work:
RemoteViews notificationLayoutExpanded = new RemoteViews(packageName, R.layout.notification_expanded);
// ...
notificationLayoutExpanded.setInt(R.id.notification_arrow, "setRotation", 90);
It's throws:
android.widget.RemoteViews$ActionException: view: android.widget.ImageView doesn't have method: setRotation(int)
Any idea?