<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
                android:orientation="horizontal">

    <ImageView
            android:id="@+id/ic_header"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@+id/progressBar"
            android:layout_marginEnd="@dimen/bar_icon_padding"
            android:contentDescription="@null"
            android:scaleType="center"
            android:visibility="gone"/>

    <com.habitrpg.android.habitica.ui.views.HabiticaProgressBar
            android:id="@+id/progressBar"
            android:layout_width="match_parent"
            android:layout_height="@dimen/bar_size"
            android:layout_toEndOf="@id/ic_header"
            android:orientation="horizontal"/>

    <LinearLayout
            android:id="@+id/labelWrapper"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/progressBar"
            android:layout_toEndOf="@id/ic_header"
            android:paddingTop="2dp">

        <ImageView
                android:id="@+id/secondaryIconView"
                android:layout_width="@dimen/icon_size"
                android:layout_height="@dimen/icon_size"
                android:layout_marginEnd="@dimen/spacing_small"
                android:visibility="gone"/>

        <TextView
                android:id="@+id/valueLabel"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:textSize="12sp"
                tools:text="50/50"/>

        <ImageView
                android:id="@+id/descriptionIconView"
                android:layout_width="@dimen/icon_size"
                android:layout_height="@dimen/icon_size"
                android:layout_marginEnd="@dimen/spacing_small"
                android:visibility="gone"/>

        <TextView
                android:id="@+id/descriptionLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center|end"
                android:textSize="12sp"
                tools:text="Health"/>
    </LinearLayout>

</RelativeLayout>
