clockbyte / admobadapter

It wraps your Adapter to display Admob native ads and banners in a ListView/RecyclerView data set. It based on the Yahoo fetchr project https://github.com/yahoo/fetchr
Apache License 2.0
237 stars 75 forks source link

Adapter replaces the item - it should insert an ad not replace. #126

Open nbaua opened 5 years ago

nbaua commented 5 years ago

Admobadapter version or commit: v1.4.6 Android compileSdkVersion: 26 Issue description briefly: Adapter replaces the item with an ad - it should insert an ad not replace (or skip) the item itself.

Steps to reproduce: Nothing fancy here, just checked your sample code and found out it simply replaces the item with the native ad using a switch case.

All the code which you want to share Well If I can think of something, I will. The idea right now running in my mind is to use a composite item layout which will have the POJO + Ad Unit members within it so the view holder can nind to both accordingly.