farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

Ads redrawing all the time! #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Any ads from Admob (and maybe others)
2. AdWhirlLayout added to the main view on a RelativeLayout below another view 
and above a Google Map view or above a Flipper.

The latest version (AdWhirlSDK_Android_2.5.5) introduces a problem with the 
AdWhirlLayout. It seems to redraw everytime something is drawn on the activity.
For example, if you have a sibling (in a RelativeLayout) that is the Google 
MapView, everytime you zoom in, out, the ads is redrawn with an animation.
The same happens if you have a sibling that is a Flipper view. Everytime you 
swipe on the Flipper, the ads is redrawn with its animation (zooming for 
example).

Is there any way to avoid the redraw?
Thanks.

Original issue reported on code.google.com by writetop...@gmail.com on 24 Oct 2010 at 8:21

GoogleCodeExporter commented 9 years ago
I didn't make many changes around the AdWhirlLayout in the last version... I'm 
not sure what could be causing the issue. You haven't encountered this with 
previous versions of AdWhirl? Did you also upgrade the AdMob SDK? Also what 
device and Android version did you see this on?

Original comment by jpin...@google.com on 25 Oct 2010 at 5:10

GoogleCodeExporter commented 9 years ago
It seems that the AdView is invalidated every time a sibling is. So the ad 
keeps flickering or redrawing with an animation.
It was not happening in the 2.1.3. I updated the Admob jar to the latest.
It can be seen with on the emulator and on a HTC Magic Android 1.6.

Original comment by writetop...@gmail.com on 27 Oct 2010 at 11:43

GoogleCodeExporter commented 9 years ago
I was talking to an engineer who worked on the AdMob SDK and had the same 
issue. As you said, it happens when a sibling needs to be redrawn. Though you 
said it wasn't happening in 2.1.3, the going theory is that we can't fix this 
because it's part of android code. The views need to redraw themselves because 
they think that the amount of space they get has been changed.

The workaround is to add the ad view to it's own layout, away from the map 
layout or whatever is causing the redraw.

Original comment by jpin...@google.com on 28 Oct 2010 at 12:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This might be an AdMob bug. Have you seen this with any other ad networks?

Original comment by jpin...@google.com on 1 Nov 2010 at 8:58

GoogleCodeExporter commented 9 years ago
Isolating AdWhirlLayout in its own Layout solved the problem. I agree that it 
seems to be an Admob bug. The ad is redrawn with an animation every time it is 
asked to be redrawn.
I think this issue can closed. Thanks for your time.

Original comment by writetop...@gmail.com on 14 Nov 2010 at 11:21

GoogleCodeExporter commented 9 years ago
I am new to Android/Adwhirl.  How do you put the ads in their own layout?  Is 
it like an overlay?  I just need a nudge in the right direction.
Thanks

Original comment by codehamm...@gmail.com on 14 Nov 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Hi codehammer, just create a new RelativeLayout or something and add an 
AdWhirlLayout to it. If you have more Android related questions, you should try 
their group, and if you have AdWhirl related questions feel free to post on our 
group.

Original comment by jpin...@google.com on 15 Nov 2010 at 4:44

GoogleCodeExporter commented 9 years ago
Ok thanks.  I was overthinking the problem.  

Original comment by codehamm...@gmail.com on 16 Nov 2010 at 5:12