2022-02-07 17:42:47 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<WebView
|
|
|
|
android:id="@+id/webview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
|
2022-02-25 13:52:20 +01:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/webview_out_of_date_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fillViewport="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/error_image_view"
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:src="@drawable/ic_error_outline_24dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/webview_out_of_date_title"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/webview_out_of_date_title"
|
|
|
|
style="@style/TextAppearance.Material3.TitleLarge"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="32dp"
|
|
|
|
android:elegantTextHeight="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/webview_out_of_date_title"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/webview_out_of_date_message"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/error_image_view" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/webview_out_of_date_message"
|
|
|
|
style="@style/TextAppearance.Material3.BodyMedium"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="32dp"
|
|
|
|
android:layout_marginBottom="32dp"
|
|
|
|
android:elegantTextHeight="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:lineSpacingMultiplier="1.2"
|
|
|
|
android:text="@string/webview_out_of_date_message"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/webview_out_of_date_title" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
2022-02-07 17:42:47 +01:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|