<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <ImageView
        android:id="@+id/bg"
        android:layout_width="match_parent"
        android:layout_height="180dp"
        android:layout_marginTop="6dp"
        android:scaleType="fitXY"
        android:src="@mipmap/bg_star_guard" />


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="11dp"
        android:layout_marginTop="60dp"
        android:ellipsize="end"
        android:maxWidth="200dp"
        android:maxLines="1"
        android:text="@string/be_their_exclusive_guardian"
        android:textColor="#FAE3B9"
        android:textSize="12sp" />

    <ImageView
        android:id="@+id/guardian_medal"
        android:layout_width="120dp"
        android:layout_height="90dp"
        android:layout_gravity="end"
        android:layout_marginEnd="3dp"
        android:src="@mipmap/icon_king_guardian_medal_grey" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:layout_marginBottom="10dp"
        android:orientation="horizontal">


        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="16dp"
            android:layout_marginBottom="38dp"
            android:layout_weight="1"
            android:gravity="center_vertical">

            <FrameLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">

                <com.makeramen.roundedimageview.RoundedImageView
                    android:id="@+id/user_avatar"
                    android:layout_width="45dp"
                    android:layout_height="45dp"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="35dp"
                    android:scaleType="centerCrop"
                    android:src="@mipmap/icon_male_default"
                    app:riv_oval="true" />

                <com.makeramen.roundedimageview.RoundedImageView
                    android:id="@+id/live_avatar"
                    android:layout_width="45dp"
                    android:layout_height="45dp"
                    android:layout_gravity="center_vertical"
                    android:scaleType="centerCrop"
                    android:src="@mipmap/icon_male_default"
                    app:riv_oval="true" />
            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:layout_marginEnd="5dp"
                android:text="@string/tas_guardian_group"
                android:textColor="#FDECCB"
                android:textSize="12sp" />
        </LinearLayout>

        <FrameLayout
            android:layout_width="120dp"
            android:layout_height="28dp"
            android:layout_gravity="bottom|end"
            android:layout_marginEnd="8dp"
            android:layout_marginBottom="48dp">

            <ImageView
                android:id="@+id/guard_open"
                android:layout_width="93dp"
                android:layout_gravity="center"
                android:layout_height="match_parent"
                android:scaleType="centerCrop"
                android:src="@mipmap/icon_bg_star_guard_open" />

            <com.flyjingfish.gradienttextviewlib.GradientTextView
                android:id="@+id/god_guard"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:letterSpacing="0.1"
                android:text="@string/not_yet_open"
                android:textSize="12sp"
                android:visibility="visible"
                app:gradient_angle="45"
                app:gradient_endColor="#FFF2D7"
                app:gradient_startColor="#FFC179" />
        </FrameLayout>
    </LinearLayout>

</FrameLayout>