omadahealth / SwipyRefreshLayout

A SwipeRefreshLayout extension that allows to swipe in both direction
MIT License
963 stars 218 forks source link

CalledFromWrongThreadException #31

Closed caijiangyang closed 8 years ago

caijiangyang commented 8 years ago

log: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6386) at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:926) at android.view.ViewGroup.invalidateChild(ViewGroup.java:4691) at android.view.View.invalidateInternal(View.java:11837) at android.view.View.invalidate(View.java:11801) at android.view.View.invalidateParentIfNeeded(View.java:11990) at android.view.View.clearAnimation(View.java:17908) at com.orangegangsters.github.swipyrefreshlayout.library.SwipyRefreshLayout.startScaleDownAnimation(SwipyRefreshLayout.java:446)

oliveeyay commented 8 years ago

You can't manipulate views from another thread than the main thread. That's a big Android design architecture, not the library problem.

Cheers,

Olivier