You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used Express ads in RecyclerView with GridLayoutManager I follow code below
rvMessages.setAdapter(adapterWrapper); GridLayoutManager mLayoutManager = new GridLayoutManager(this, 2); mLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { @Override public int getSpanSize(int position) { //set span 2 for ad block, otherwise 1 if(adapterWrapper.getItemViewType(position) == adapterWrapper.getViewTypeAdExpress()) return 2; else return 1; } }); rvMessages.setLayoutManager(mLayoutManager);
Now I migrate to Advanced ads but didnt find any code for this operation.
How to use adapterWrapper with Advanced ads in RecyclerView with GridLayoutManager?
Thanks
The text was updated successfully, but these errors were encountered:
Admobadapter version or commit: 1.4.6
Android compileSdkVersion: 27
Issue description briefly:
When I used Express ads in RecyclerView with GridLayoutManager I follow code below
rvMessages.setAdapter(adapterWrapper);
GridLayoutManager mLayoutManager = new GridLayoutManager(this, 2);
mLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@Override
public int getSpanSize(int position) {
//set span 2 for ad block, otherwise 1
if(adapterWrapper.getItemViewType(position) == adapterWrapper.getViewTypeAdExpress())
return 2;
else return 1;
}
});
rvMessages.setLayoutManager(mLayoutManager);
Now I migrate to Advanced ads but didnt find any code for this operation.
How to use adapterWrapper with Advanced ads in RecyclerView with GridLayoutManager?
Thanks
The text was updated successfully, but these errors were encountered: