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
FireBaseRecyclerAdapter with AdmobBannerRecyclerAdapterWrapper causes error when setting adapter #120
Hi! Thank you for putting in the time to make this project :)
*Admobadapter version or commit:1.4.6*
*Android compileSdkVersion:27*
*Issue description briefly: When using a FirebaseRecyclerAdapter with a custom image view holder with an AdmobBanerRecyclerAdapterWrapper, I am unable to set the adapter to the firebaseRecyclerAdapter that uses my own ViewHolder giving this error:
Type mismatch: inferred type is FirebaseRecyclerAdapter<UploadInfo, ImgViewHolder> but RecyclerView.Adapter<RecyclerView.ViewHolder!>! was expected*
However, if I pass the RecyclerView.ViewHolder to the FirebaseRecyclerAdapter as the error suggests
Hi! Thank you for putting in the time to make this project :)
*Admobadapter version or commit:1.4.6*
*Android compileSdkVersion:27*
*Issue description briefly: When using a FirebaseRecyclerAdapter with a custom image view holder with an AdmobBanerRecyclerAdapterWrapper, I am unable to set the adapter to the firebaseRecyclerAdapter that uses my own ViewHolder giving this error:
However, if I pass the RecyclerView.ViewHolder to the FirebaseRecyclerAdapter as the error suggests
The ads load but all my images will not.
*Steps to reproduce: `Activity.kt
ImgViewHolder.kt
Also tried by making the ImgViewHolder in Java but it had the same result ImgViewHolders.java
Any help would be greatly appreciated thanks!