Android SwipeRefreshLayout showing twice in Fragment using support library

Seems to be a support library error, but when I do mSwipeRefreshLayout updating the onCreateView fragment with this code

mSwipeRefreshLayout.post(new Runnable() {
   @Override
   public void run() {
        mSwipeRefreshLayout.setRefreshing(true);

      }
});

      

circle progress starts twice. First it appears and immediately hides, then it reappears, and then it works like it was supposed to do. This doesn't happen on Android L devices only when api <21 using support library. Please help me.

+3
android swiperefreshlayout


source to share


No one has answered this question yet

Check out similar questions:

964
Download file from Android and show progress in ProgressDialog
947
Android Studio: add jar as library?
603
Best practice for instantiating a new Android fragment
170
Switching between Android Navigation Drawer and Up caret images when using fragments
136
SwipeRefreshLayout setRefreshing () doesn't show indicator initially
111
Best practice for nested fragments in Android 4.0, 4.1 (<4.2) without using a support library
98
Android 4.2: reverse stack behavior with nested fragments
6
New version of SwipeRefreshLayout throws wrong views thread
3
Support Fragment vs Native Fragment
1
Fragment setRetainInstance not working (Android support)



All Articles
Loading...
X
Show
Funny
Dev
Pics