Created
September 27, 2017 11:30
-
-
Save chnouman/ebea49c840904d378a69cc7244084816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a custom SpanSizeLookup where the first item spans both columns | |
/*layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { | |
@Override | |
public int getSpanSize(int position) { | |
if (position == 0) { | |
return 1; | |
} | |
if (StoriesFragment.dataList.get(position) instanceof NativeAdView) | |
return 2; | |
else if (StoriesFragment.dataList.get(position) instanceof ModelForDailyandRecent) | |
return 1; | |
return 2; | |
} | |
});*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
specially used in native adds module