<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    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">

    <!-- 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.AppCompat.ProgressBar.Horizontal"
            android:layout_width="match_parent"
            android:layout_height="14dp"
            android:layout_gravity="center"
            android:background="?riotx_header_panel_background"
            android:indeterminate="true" />
    </FrameLayout>

    <TextView
        android:id="@+id/syncStateNoNetwork"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/vector_warning_color"
        android:gravity="center"
        android:text="@string/no_network_indicator"
        android:textColor="@color/white"
        android:visibility="gone"
        tools:visibility="visible" />

</merge>