У меня есть текст заголовка и webView в LinearLayout в ScrollView. Я хочу добавить макет Swipe Refresh, но не знаю, где его разместить, потому что всегда возникают ошибки или страница не отображается.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
style="@style/PageTitle"
android:text="@string/news_in_fazekas" />
<WebView
android:id="@+id/newsWebView"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>