admobadapter icon indicating copy to clipboard operation
admobadapter copied to clipboard

Display items in RecyclerViews with GridLayoutManager

Open shtil opened this issue 7 years ago • 1 comments

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

shtil avatar Feb 28 '18 14:02 shtil

@shtil Sorry this feature hasn't been supported yet for Advanced ads! But it is totally in schedule.

kot331107 avatar Feb 28 '18 18:02 kot331107