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

The gridView doesn`t adjust its height,when I set the footerView gone #47

Open
NiaNingXue opened this issue Apr 18, 2016 · 1 comment
Open

Comments

@NiaNingXue
Copy link

NiaNingXue commented Apr 18, 2016

I make the footerView as a loadmore view , When I set the footerView visable or gone ,the GridView cann`t adjust its height to match the screen .here is the code:

        mGridView = (GridViewWithHeaderAndFooter)inflater.inflate(R.layout.fragment_category_detail, container, false);
        mFooterView = new LoadMoreFooterView(mContext);
        mGridView.addFooterView(mFooterView);
        mGridView.setOnScrollListener(mFooterView);
        `mFooterView.setOnLoadMoreListener(this);`

   @Override
    public void onLoadMore() {
        mFooterView.setStatus(LoadMoreFooterView.Status.LOADING);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                mFooterView.setStatus(LoadMoreFooterView.Status.GONE);
            }
        },3500);
    }
@Muchaszewski
Copy link

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

2 participants