Jake, There is ImageView.setAlpha, but no "setImageViewAlpha" method in RemoteViews.
You could try using RemoteViews.setInt(imageViewId, "setAlpha", alphaValue). If that works, that would be the most efficient way, as that would call ImageView.setAlpha within the launcher process. Other than that, RemoveViews.setImageViewBitmap() is one way, somewhat inefficient, as that sends actual bitmap data over RPC into the launcher process, but should be Ok if you don't do it too often and the image is not too large. Another technique that's often discussed on this list is saving the image to a file, then using RemoteViews.setImageViewUri(), making sure that the file is accessible by other processes (specifially, the launcher). I haven't done transparency in my widgets yet, so the above is just my understanding based on what I've read on this list. -- Kostya 4 апреля 2011 г. 21:59 пользователь Jake Colman <[email protected]> написал: > > Kostya, > > I've seen other widgets do this (WeatherBug, for example). Is there no > standard technique for manipulating the background? Have you considered > this for your own widgets? > > ...Jake > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

