<?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"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    tools:orientation="vertical"
    tools:parentTag="android.widget.LinearLayout">

    <FrameLayout
        android:id="@+id/syncStateDebugInfo"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="2dp"
        android:visibility="gone"
        tools:visibility="visible">

        <TextView
            android:id="@+id/syncStateDebugInfoText"
            style="@style/Widget.Vector.TextView.Caption"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fontFamily="monospace"
            tools:text="debug info" />

        <TextView
            android:id="@+id/syncStateDebugInfoPushCounter"
            style="@style/Widget.Vector.TextView.Caption"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|center_vertical"
            android:fontFamily="monospace"
            android:textStyle="bold"
            tools:text="123" />

    </FrameLayout>

    <!-- Trick to remove surrounding padding (clip from wrapping frame) -->
    <FrameLayout
        android:id="@+id/syncStateProgressBar"
        android:layout_width="match_parent"
        android:layout_height="3dp"
        android:visibility="gone"
        tools:visibility="visible">

        <ProgressBar
            style="@style/Widget.Vector.ProgressBar.Horizontal"
            android:layout_width="match_parent"
            android:layout_height="14dp"
            android:layout_gravity="center"
            android:indeterminate="true" />

    </FrameLayout>

    <TextView
        android:id="@+id/syncStateNoNetwork"
        style="@style/Widget.Vector.TextView.Body"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?colorError"
        android:gravity="center"
        android:text="@string/no_connectivity_to_the_server_indicator"
        android:textColor="?colorOnError"
        android:visibility="gone"
        tools:layout_marginTop="10dp"
        tools:visibility="visible" />

    <FrameLayout
        android:id="@+id/syncStateNoNetworkAirplane"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/notification_accent_color"
        android:visibility="gone"
        tools:layout_marginTop="10dp"
        tools:visibility="visible">

        <TextView
            style="@style/Widget.Vector.TextView.Body"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:drawablePadding="4dp"
            android:gravity="center"
            android:text="@string/no_connectivity_to_the_server_indicator_airplane"
            android:textColor="?colorOnPrimary"
            app:drawableStartCompat="@drawable/ic_airplane_16dp"
            app:drawableTint="?colorOnPrimary" />

    </FrameLayout>

</merge>