Я реализовал один список элементов с горизонтальной прокруткой, используя RecyclerView внутри прокрутки. Я хочу обновить элемент, когда пользователь прокручивает список до конца (элемент добавляется после обновления). Следующий код является реализацией макета.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v4.widget.SwipeRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layoutManager="android.support.v7.widget.LinearLayoutManager">
</android.support.v7.widget.RecyclerView>
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
</ScrollView>
До добавления SwipeRefreshLayout все работает нормально (элементы в RecyclerView отображаются нормально), но после добавления SwipeRefreshLayout RecyclerView исчезает (как на устройстве, так и в предварительном просмотре в Android Studio)
Не могли бы вы выяснить, как решить эту проблему. Заранее спасибо!!