<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/llApparatusTitle"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/dp_10"
    android:layout_marginRight="@dimen/dp_10"
    android:background="@drawable/shape_round_white"
    android:paddingBottom="@dimen/dp_20">

    <TextView
        android:id="@+id/mTv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dp_16"
        android:layout_marginTop="@dimen/dp_22"
        android:drawableStart="@drawable/shape_head_tip_new"
        android:drawablePadding="@dimen/dp_10"
        android:text="@string/organ_fun"
        android:textColor="@color/col_313"
        android:textSize="@dimen/sp_17"
        android:textStyle="bold"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:ignore="UseCompatTextViewDrawableXml" />

    <LinearLayout
        android:id="@+id/llHint"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dp_28"
        android:layout_marginEnd="@dimen/dp_16"
        android:gravity="center"
        android:orientation="horizontal"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/mTv">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/dp_16"
            android:drawableStart="@drawable/shape_dot_9bd"
            android:drawablePadding="@dimen/dp_5"
            android:text="健康"
            android:textColor="@color/col_c7c"
            android:textSize="@dimen/sp_11"
            tools:ignore="UseCompatTextViewDrawableXml" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/dp_16"
            android:drawableStart="@drawable/shape_dot_04f"
            android:drawablePadding="@dimen/dp_5"
            android:text="亚健康"
            android:textColor="@color/col_c7c"
            android:textSize="@dimen/sp_11"
            tools:ignore="UseCompatTextViewDrawableXml" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/dp_16"
            android:drawableStart="@drawable/shape_dot_disease"
            android:drawablePadding="@dimen/dp_5"
            android:text="疾病"
            android:textColor="@color/col_c7c"
            android:textSize="@dimen/sp_11"
            tools:ignore="UseCompatTextViewDrawableXml" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableStart="@drawable/shape_dot_7b8"
            android:drawablePadding="@dimen/dp_5"
            android:text="数据不足"
            android:textColor="@color/col_c7c"
            android:textSize="@dimen/sp_11"
            tools:ignore="UseCompatTextViewDrawableXml" />

    </LinearLayout>

    <include
        android:id= "@+id/cl_body"
        layout="@layout/layout_health_body"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/llHint"/>

    <ImageView
        android:id="@+id/mBody"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dp_20"
        android:src="@mipmap/ic_male_body_health"
        android:visibility="gone"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/llHint" />

    <LinearLayout
        android:id="@+id/mOrganNameLeftLay"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:orientation="vertical"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="@+id/mBody"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@+id/mBody"
        app:layout_constraintTop_toTopOf="@+id/mBody">

        <com.xty.common.weight.VisceraView
            android:id="@+id/mHeart"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/heart" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mSmall"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/small_intestine" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mBladder"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/bladder" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mKidney"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/kidney" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mPericardium"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/pericardium" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mLymph"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/lymph" />

    </LinearLayout>

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:orientation="vertical"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="@+id/mBody"
        app:layout_constraintLeft_toRightOf="@+id/mBody"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="@+id/mBody">

        <com.xty.common.weight.VisceraView
            android:id="@+id/mSpleen"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:is_right="true"
            app:status_txt="健康"
            app:viscera="@string/spleen" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mStomach"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:is_right="true"
            app:status_txt="健康"
            app:viscera="@string/stomach" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mLarge"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:is_right="true"
            app:status_txt="健康"
            app:viscera="@string/large_intestine" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mLung"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:is_right="true"
            app:status_txt="健康"
            app:viscera="@string/lung" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mLiver"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:is_right="true"
            app:status_txt="健康"
            app:viscera="@string/liver" />

        <com.xty.common.weight.VisceraView
            android:id="@+id/mGallbladder"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:image="@mipmap/ic_test"
            app:is_right="true"
            app:status_txt="健康"
            app:viscera="@string/gallbladder" />

    </LinearLayout>

    <View
        android:id="@+id/mOrganSepLine"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginStart="@dimen/dp_16"
        android:layout_marginTop="@dimen/dp_20"
        android:layout_marginEnd="@dimen/dp_16"
        android:background="@color/col_0f2"
        app:layout_constraintTop_toBottomOf="@+id/cl_body" />

    <FrameLayout
        android:id="@+id/mOrganSelectNameLay"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dp_16"
        android:layout_marginTop="@dimen/dp_18"
        android:layout_marginEnd="@dimen/dp_16"
        android:orientation="horizontal"
        app:layout_constraintTop_toBottomOf="@+id/mOrganSepLine">

        <com.xty.common.weight.VisceraView
            android:id="@+id/mOrganView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:image="@mipmap/ic_test"
            app:status_txt="健康"
            app:viscera="@string/heart" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center|end"
            android:text="注:点击上图器官图标可展示健康情况"
            android:textSize="@dimen/sp_11" />

    </FrameLayout>

    <com.zj365.health.weight.DayHealthView
        android:id="@+id/mOrganStatus"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp_50"
        android:layout_marginStart="@dimen/dp_16"
        android:layout_marginEnd="@dimen/dp_16"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/mOrganSelectNameLay"
        app:txt_size="@dimen/dp_14" />

    <LinearLayout
        android:id="@+id/mOrganHealthTime"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dp_16"
        android:layout_marginTop="@dimen/dp_12"
        android:layout_marginEnd="@dimen/dp_16"
        android:orientation="horizontal"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/mOrganStatus" />

</androidx.constraintlayout.widget.ConstraintLayout>