[android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread Jeffrey
Yeah, looking at things again I think that will work. I wasn't looking at the correct way of converting to bitmap but I found the way that will let it work. Thanks! On Feb 22, 3:50 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 22 February 2011 22:39, Jeffrey jeffisagen...@gmail.com

[android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread Jeffrey
Okay, after trying it out I am still facing issues. I can't seem to get the alpha to carry over after converting to Bitmap and using setImageViewBitmap(). This is my code so far: Drawable Sec1 = this.getResources().getDrawable(Test[180]); Sec1.mutate().setAlpha(80); Bitmap Section1 =

[android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread Jeffrey
Another option that might be easier is if I could find a way to set an alpha for the ImageViews themselves, but I can't find an easy way to do that. On Feb 22, 4:42 pm, Jeffrey jeffisagen...@gmail.com wrote: Okay, after trying it out I am still facing issues. I can't seem to get the alpha to

Re: [android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread YuviDroid
Since Android 2.2 the method setAlpha() of ImageViews has become @RemoteViewable (or something like that, I don't remember that annotation). So you can simply call RemoteViews.setInt (viewId, setAlpha, value). I haven't tried it myself, but I believe it should work.. On Tue, Feb 22, 2011 at

[android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread Jeffrey
That totally works! Thank you, you are a life saver. On Feb 22, 5:24 pm, YuviDroid yuvidr...@gmail.com wrote: Since Android 2.2 the method setAlpha() of ImageViews has become @RemoteViewable (or something like that, I don't remember that annotation). So you can simply call RemoteViews.setInt

[android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread metal mikey
Pretty sure I tried the setInt(whatevz,setAlpha,etc... technique when adding optional transparent backgrounds to one of my AppWidgets - didn't work. So I had to opt for making a copy of my base Layout for each background version. Pretty nasty stuff as I've now got 4 versions of base Layout to