<?xml version="1.0" encoding="utf-8"?>
<merge
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	xmlns:tools="http://schemas.android.com/tools"
	tools:parentTag="android.widget.FrameLayout">

	<!-- https://github.com/material-components/material-components-android/issues/2028 -->
	<ProgressBar
		android:id="@+id/progressBar"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_gravity="center"
		android:indeterminate="true"
		android:max="100"
		tools:viewBindingType="android.widget.ProgressBar" />

	<LinearLayout
		android:id="@+id/layout_error"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_gravity="center"
		android:layout_marginStart="60dp"
		android:layout_marginEnd="60dp"
		android:gravity="center_horizontal"
		android:orientation="vertical"
		android:visibility="gone"
		tools:visibility="visible">

		<TextView
			android:id="@+id/textView_error"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:drawablePadding="12dp"
			android:gravity="center_horizontal"
			android:textAlignment="center"
			android:textAppearance="@style/TextAppearance.AppCompat.Small"
			app:drawableTopCompat="@drawable/ic_error_large"
			tools:text="@tools:sample/lorem[6]" />

		<Button
			android:id="@+id/button_retry"
			style="@style/Widget.Material3.Button.TonalButton"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginTop="16dp"
			android:text="@string/try_again" />

	</LinearLayout>

</merge>