I am trying to set the alpha of an image in an ImageView that's
displayed as a AppWidget.

RemoteViews supposedly works with ImageViews, and indeed I can set a
particular bitmap to the ImageView using setImageViewBitmap().

However, when I attempt to use:

setInt(R.id.widget_image, "setAlpha", 200);

I receive a RemoteViews$ActionException view: android.widget.ImageView
can't use method with RemoteViews: setAlpha(int)

So, I doubt I'll ever be able to use setAlpha(int) with Android 1.6,
so my question is...

How would one work around this?

I was thinking that perhaps we could apply the alpha to the bitmap
before we set it, but I'm not exactly sure how to accomplish this and
I've not seen any good examples of *just* adding an alpha value to the
overall bitmap.

Thanks for reading. Any help is appreciated.

-- 
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

Reply via email to