Я нашел несколько ответов, как
Анимация обновления SwipeRefreshLayout не останавливается
плюс некоторые другие вопросы и ответы, но до сих пор я не нашел своего решения, Даже я не могу понять проблему.
На самом деле класс pageAdapter
Мой код
@Override
public Object instantiateItem(ViewGroup container, int position) {
View listView = LayoutInflater.from(container.getContext()).inflate(R.layout.fragment_common_list, container, false);
swipeView = (SwipeRefreshLayout) listView.findViewById(R.id.nfs);
swipeView.setColorSchemeResources(R.color.colorPrimary,
R.color.colorAccent,
R.color.yes,
R.color.no);
swipeView.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
(new Handler()).postDelayed(new Runnable() {
@Override
public void run() {
Log.d("SwipeView","Refrehing");
swipeView.setRefreshing(false);
Log.d("SwipeView ",swipeView.isRefreshing()+"");
}
}, 3000);
}
});
}
и мой фрагмент_коммона_листов просмотр
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/nfs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/tab_height">
<ListView
android:id="@+id/commonList"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.v4.widget.SwipeRefreshLayout>