Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlowLayoutManager use problem in FlexibleAdapter #1

Open
tcqq opened this issue Aug 21, 2018 · 0 comments
Open

FlowLayoutManager use problem in FlexibleAdapter #1

tcqq opened this issue Aug 21, 2018 · 0 comments

Comments

@tcqq
Copy link

tcqq commented Aug 21, 2018

Problem

@Astrocode011235813 Hi, thank you for your library. I am using FlowLayoutManager in FlexibleAdapter now, I enabled stickyHeaders, but now it doesn't work, If I change LayoutManager to SmoothScrollLinearLayoutManager, stickyHeaders will not have the above problem.
image

Code

This is FlexibleFlowLayoutManager code, how should I fix this? thank you.

package com.example.flexibleadapterstickyheaderexample.manager;

import eu.davidea.flexibleadapter.common.IFlexibleLayoutManager;

public class FlexibleFlowLayoutManager extends FLMFlowLayoutManager implements IFlexibleLayoutManager {

    public FlexibleFlowLayoutManager(int orientation) {
        super(orientation);
    }

    @Override
    public int getSpanCount() {
        return 0;
    }

    @Override
    public int findFirstCompletelyVisibleItemPosition() {
        return 0;
    }

    @Override
    public int findFirstVisibleItemPosition() {
        return 0;
    }

    @Override
    public int findLastCompletelyVisibleItemPosition() {
        return 0;
    }

    @Override
    public int findLastVisibleItemPosition() {
        return 0;
    }
}

Annex

FlexibleAdapterStickyHeaderExample

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

No branches or pull requests

1 participant