<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_centerHorizontal="true"
              android:adjustViewBounds="true"
              android:background="?attr/headerBackgroundColor"
              android:focusable="true"
              android:focusableInTouchMode="true"
              android:orientation="vertical">

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

        <com.habitrpg.android.habitica.ui.AvatarView
                android:id="@+id/avatarView"
                android:layout_width="@dimen/avatar_header_width"
                android:layout_height="@dimen/avatar_header_height"
                android:layout_gravity="center_vertical"
                android:layout_marginEnd="20dp"
                android:contentDescription="@string/sidebar_avatar"
                app:showBackground="true"
                app:showMount="true"
                app:showPet="true"/>

        <LinearLayout
            android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

            <com.habitrpg.android.habitica.ui.views.ValueBar
                    android:id="@+id/hpBar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="@dimen/header_bar_spacing"
                    app:barForegroundColor="@color/hpColor"
                app:lightBackground="true"
                    app:description="@string/HP_default"/>

            <com.habitrpg.android.habitica.ui.views.ValueBar
                    android:id="@+id/xpBar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="@dimen/header_bar_spacing"
                    app:barForegroundColor="@color/xpColor"
                app:lightBackground="true"
                    app:description="@string/XP_default"/>

            <com.habitrpg.android.habitica.ui.views.ValueBar
                    android:id="@+id/mpBar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:barForegroundColor="@color/mpColor"
                app:lightBackground="true"
                    app:description="@string/MP_default"/>

        </LinearLayout>
    </LinearLayout>

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical">

        <TextView
                android:id="@+id/lvl_tv"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:drawablePadding="6dp"
                android:gravity="center"
                android:textColor="?headerTextColor"
                android:textSize="14sp"
                tools:text="Lvl 12 Warrior"/>

        <ImageView
            android:id="@+id/buffImageView"
            android:layout_width="15dp"
            android:layout_height="15dp"
            android:layout_gravity="center"
            android:layout_marginStart="8dp"
            tools:srcCompat="@tools:sample/avatars" />

        <View
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_weight="1"/>

        <com.habitrpg.android.habitica.ui.views.CurrencyViews
                android:id="@+id/currencyView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:hasLightBackground="true"/>
    </LinearLayout>
</LinearLayout>