Android 6.0.0 on ICS background color

194 views
Skip to first unread message

Gicci

unread,
Apr 24, 2012, 7:22:41 PM4/24/12
to google-adm...@googlegroups.com
It seems that when running on ICS the 6.0.0 version of AdMob paints the background of the ad in white before actually displaying it. This causes an unpleasant flashing in apps that use a black background. Is it possible to override this behaviour?

Eric Leichtenschlag

unread,
Apr 24, 2012, 8:29:24 PM4/24/12
to google-adm...@googlegroups.com
Hello Gicci,

This only occurs when using smart banners, correct?  The background for the ad is supposed to be transparent, but ICS has a WebView bug where it just shows white.  We're trying to workaround this issue by making sure that the ad you get is always full width, but it looks like AdSense back-fill ads aren't being properly rendered full width yet.

Eric

Gicci

unread,
Apr 25, 2012, 10:09:52 AM4/25/12
to google-adm...@googlegroups.com
Hi,

no, I still have a dummy LinearLayout in which I programmatically instantiate an AdView selecting BANNER, IAB_LEADERBORD or IAB_BANNER depending on the available view and screen sizes.

The white is shown on the back of the place which will be filled by the ad, not on the padding left and right space which stay black. Flashes for half a second then the ad is correctly drawn.

Giuseppe

Markus Wiederkehr

unread,
Apr 25, 2012, 3:16:34 PM4/25/12
to google-adm...@googlegroups.com
If I remember correctly I had the same issues with hardware acceleration turned on and worked around it by disabling hardware acceleration on the AdView like so:

adView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

Markus

Gicci

unread,
Apr 26, 2012, 4:02:07 PM4/26/12
to google-adm...@googlegroups.com
Hi Markus!

Thank you, it seems that this solves the problem.

Giuseppe

DraganA

unread,
Apr 29, 2012, 5:01:32 AM4/29/12
to google-adm...@googlegroups.com
It would be good if this parameter can be specified in the xml file, because it blows on earlier Android versions unless reflection is used, which is yet another complication.

Gicci

unread,
May 1, 2012, 5:01:55 AM5/1/12
to google-adm...@googlegroups.com
As it is a standard view property I guess that if you create the AdView from XML you can add directly to its definition. I didn't tested this option as I create it programmatically and had to go the reflection way...
Reply all
Reply to author
Forward
0 new messages