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

Animation Freeze while requesting server #36

Open
Nik2505 opened this issue Jul 14, 2016 · 1 comment
Open

Animation Freeze while requesting server #36

Nik2505 opened this issue Jul 14, 2016 · 1 comment

Comments

@Nik2505
Copy link

Nik2505 commented Jul 14, 2016

refresh_layout.setOnRefreshListener(new PullRefreshLayout.OnRefreshListener() {

        @Override
        public void onRefresh() {
            // TODO Auto-generated method stub

            refresh_layout.post(new Runnable() {

                @Override
                public void run() {
                    // TODO Auto-generated method stub
                    refresh_layout.setRefreshing(true);
                                           // requesting to webservice
                }
            });
        }
    });
@ka05
Copy link

ka05 commented Sep 14, 2017

@Nik2505 You may want to make sure you are running that call on the UI Thread.

getActivity().runOnUiThread(()->{
    refresh_layout.setRefreshing(true);
}) 

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