Hello,
I currently have a ListView being filled by a custom Adapter with
content it gets from a JSON string on a web page. The ListView's row
layout is a LinearLayout that has two things in it, one AdMob layout
and one TextView. The AdMob layout's visibility is by default set to
Gone.

What I want to do make every 5th row's AdMob layout visible. The
current way I am doing this is by Overriding getView in my custom
adapter (something I already had programmer to get my rows to have
alternating colours), within this I keep track of the position
variable and see if I have moved down 5 rows yet. When I have I find
the AdView object and set it to visible. This works fine for a while
but for some reason as I scroll down more on my list the ads become
every other instead of every five. This doesn't make any sense to me
because I have set up logcat to tell me when it reaches my "make ad
visible code" and according to that I should not be having double ads.

Has this happened to anyone else before? I'm not quite sure how to
handle this situation.

-- 
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

Reply via email to