Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 91

Ejaaz
I hate code!
Profile
Posts: 15
Reg: Aug 27, 2011
India
150
08/25/13 10:32 AM (12 years ago)

List Row becomes Black when scrolled.

I am using a MENU WITH IMAGE plugin. Created a Listview with Transparent Background. There is a Colourful PNG in the Background of the Screen. I want my Listview to be transparent. Now the Problem is : As long as the screen is shown statically (as in no movement) it will be shown correctly, but when I start scrolling through the list the background of the row becomes completely black... when the scrolling stops the background will, most of the times, get back it's color... Any idea why this is happening, and how to solve this ? I am doing for Android. I have used CLEAR as Background colour for the List.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/25/13 11:28 AM (12 years ago)
Find the layout.XML file for this plug-in. Change the "cache" color for the ListView to transparent. This in in the XML. That should take care of it :-)
 
Ejaaz
I hate code!
Profile
Posts: 15
Reg: Aug 27, 2011
India
150
like
08/25/13 11:51 AM (12 years ago)
Dear David, Thank you for your reply. But I still have the problem. screen_menulistsimple.xml has this code : <ListView android:id="@+id/listView" android:background="@android:color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:cacheColorHint="#00000000" android:choiceMode="singleChoice" android:layout_weight="1" android:scrollbars="none"> </ListView> and screen_wb_menuimage.xml has this : <ListView android:id="@+id/listView" android:background="@android:color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:cacheColorHint="#00000000" android:choiceMode="singleChoice" android:layout_weight="1" android:scrollbars="none" android:layout_below="@+id/headerImageView"> </ListView> Thank you.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/25/13 12:01 PM (12 years ago)
Yup. See the "transparent" value for the backgrounds? Set the cacheColorHint to the same. On mobile or I would explain in more detail. :-)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/25/13 12:28 PM (12 years ago)
This... android:cacheColorHint="#00000000" becomes... android:cacheColorHint="@android:color/transparent"
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
08/25/13 08:36 PM (12 years ago)
I have a revision coming on the plugin and will put this in. Thank you @Ejaaz for reporting it and David, thank you for fixing it.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.