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 <gdon...@gmail.com> wrote: > On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald <gdon...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en