Итак, у меня есть активность с ViewPager и 2 фрагментами в нем. В каждом фрагменте я помещаю SwipeToRefreshLayout и ListView. Xml выглядит так:Проблема с SwipeToRefresh layout в фрагменте ViewPager
<?xml version="1.0" encoding="utf-8"?>
*<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/going_out_activity_swipe_to_refresh"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">*
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/going_out_activity_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_going_out"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/ic_tab_new"/>
</RelativeLayout>
</android.support.v4.widget.SwipeRefreshLayout>
Теперь возникает проблема. Когда список превышает мой экран, и мне нужно прокрутить вниз, чтобы увидеть элементы, когда я пытаюсь выполнить прокрутку, оно не прокручивается, оно обновляется (вызывается SwipeToRefreshLayout). Как я могу это исправить?
это один работает как шарм для ListView. Спасибо. –