Re: [android-developers] Re: list view with alpha transparency effect
Hello,
Try: setBackgroundColor(Color.argb(125, 0, 0, 255));
the 1st set of digits (125) is the translucency.
Hope this helps,
Fred
On 18/06/2011, Greg Donald <gdonald@gmail.com> wrote:
> On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald <gdonald@gmail.com> wrote:
>> I have a list view using a layout that has a background color of
>> #80000000.
>>
>> When I scroll the list, the list item background color change to a
>> solid color, in this case black. Seems it's ignoring the alpha
>> transparency value on scroll.
>>
>> Is there a way to make it not do that?
>
> Tried this in getView() in my list adapter:
>
> RelativeLayout outer = (RelativeLayout) findViewById( R.id.outer );
> int color = Color.argb( 80, 0, 0, 0 );
> outer.setBackgroundColor( color );
>
> Still turns black on scroll :(
>
>
> --
> Greg Donald
> destiney.com | gregdonald.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home