Android SwipeRefresh在第三圈时卡住(蓝色、绿色、橙色)

Android SwipeRefresh在第三圈时卡住(蓝色、绿色、橙色),android,android-animation,swiperefreshlayout,Android,Android Animation,Swiperefreshlayout,有没有人遇到过下拉新鲜动画卡在第三种颜色上的问题?我没有得到至少3个圆圈(O),我得到2.5,最后一个类似字母“C”。前两种颜色执行360度,最后一种颜色在180度停留几秒钟,然后消失,数据/屏幕刷新。当我注释掉refreshListView()时,圆圈无限循环。我不确定这是否重要,但我的圆圈被橙色卡住了,即使我没有在代码中专门使用这种颜色 有什么想法吗 刷新代码// swipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_conta

有没有人遇到过下拉新鲜动画卡在第三种颜色上的问题?我没有得到至少3个圆圈(O),我得到2.5,最后一个类似字母“C”。前两种颜色执行360度,最后一种颜色在180度停留几秒钟,然后消失,数据/屏幕刷新。当我注释掉refreshListView()时,圆圈无限循环。我不确定这是否重要,但我的圆圈被橙色卡住了,即使我没有在代码中专门使用这种颜色

有什么想法吗

刷新代码//

swipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_container);
swipeLayout.setColorSchemeResources(android.R.color.holo_green_light, android.R.color.holo_blue_light, android.R.color.holo_green_light);

swipeLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
    @Override
    public void onRefresh() {
        swipeLayout.setRefreshing(true);
        Log.d("Swipe", "Refreshing Number");
        ( new Handler()).postDelayed(new Runnable() {
            @Override
            public void run() {
                Connectivity check = new Connectivity(getApplicationContext());
                if (!(check.isConnectingToInternet())) {
                    check.showAlertDialog(Summary.this, "No internet connection", "Noo interweb detected." + " Please check your connection.", false);
                }
                else {
                    refreshListView(); //A lot is happening in this method. I don't mind the fact that it takes a little bit to complete, but I do not like that the animation freezes.
                }
            }
        }, 3000);
    }
});

我最终崩溃了,并使用异步任务解决了这个问题

我最终崩溃了,并使用异步任务解决了这个问题

我能够确定无限循环动画是设置失败的结果。刷新为false。我能够确定无限循环动画是设置失败的结果。刷新为false。我能够确定无限循环动画是设置失败的结果。刷新为false。