android - SwipeRefresh gets stuck on the 3rd spin (blue, green, orange) -


has encountered issue of pull down fresh animation getting stuck on third color? i'm not getting minimum of 3 circles (o), 2.5 final 1 being resembling letter "c".the first 2 colors perform 360, , last color gets stuck @ 180 sit there few seconds goes away , data/screen refreshes. when comment out refreshlistview() circle loops infinitely. i'm not sure if matters, circle gets stuck on color orange, though i'm not using color in code.

any ideas?

refresh code//

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 connection.", false);                 }                 else {                     refreshlistview(); //a lot happening in method. don't mind fact takes little bit complete, not animation freezes.                 }             }         }, 3000);     } }); 

i broke down, , used asynctask resolve this.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -