Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

It's not working with GridLayout Manager #61

Closed
himanshumistri opened this issue Aug 11, 2015 · 1 comment
Closed

It's not working with GridLayout Manager #61

himanshumistri opened this issue Aug 11, 2015 · 1 comment

Comments

@himanshumistri
Copy link

I have following GridLayout manager set to Recycle view but it's Header Decoration not working .

final GridLayoutManager mGridLayouyt=new GridLayoutManager(getActivity(),3);


        mGridLayouyt.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
            @Override
            public int getSpanSize(int position) {

                LogUtil.i("LOG_TAG", "Span Count Position -->" + position);

                //(isSectionHeaderPosition(position))? layoutManager.getSpanCount() : 1 ;

                return mArrayModel.get(position).isSection() ? mGridLayouyt.getSpanCount() : 1;

            }
        });

        mGridLayouyt.setSpanCount(3);


        mRecycleView.setLayoutManager(mGridLayouyt);

@jacobtabak
Copy link
Contributor

This library only works with a LinearLayoutManager - See #8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants