<?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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/col_f1f">
    <include
        android:id="@+id/title"
        layout="@layout/title_health_bar" />


    <com.androidkun.xtablayout.XTabLayout
        android:id="@+id/xTablayout"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp_60"
        android:layout_below="@+id/title"
        android:background="@drawable/shape_health_bg_new"
        app:xTabDividerColor="@color/white"
        app:xTabDividerGravity="center"
        app:xTabDividerHeight="10dp"
        app:xTabDividerWidth="1dp"
        app:xTabDividerWidthWidthText="true"
        app:xTabIndicatorColor="@color/col_e0b"
        app:xTabIndicatorHeight="@dimen/dp_2"
        app:xTabMode="scrollable"
        app:xTabSelectedTextColor="@color/white"
        app:xTabSelectedTextSize="@dimen/dp_18"
        app:xTabTextColor="@color/white_50"
        app:xTabTextSize="@dimen/dp_18" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/mRecycle"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/mGuid"
        android:layout_below="@+id/xTablayout"
        android:layout_marginLeft="@dimen/dp_10"
        android:layout_marginRight="@dimen/dp_10"
        android:overScrollMode="never" />
    <androidx.core.widget.NestedScrollView
        android:id="@+id/mScroll"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/mGuid"
        android:layout_below="@+id/title">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/mChildView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/col_f1f">

            <TextView
                android:id="@+id/mTv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/dp_10"
                android:paddingTop="@dimen/dp_10"
                android:text="@string/com_health"
                android:textColor="@color/col_6b3"
                android:textSize="@dimen/sp_16"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <TextView
                android:id="@+id/mTvStatus"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="@dimen/dp_10"
                android:text="亚健康"
                android:textColor="@color/col_f1a"
                android:textSize="@dimen/sp_16"
                app:layout_constraintLeft_toRightOf="@+id/mTv"
                app:layout_constraintTop_toTopOf="parent" />

            <TextView
                android:id="@+id/mTvTime"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="@dimen/dp_10"
                android:paddingTop="@dimen/dp_10"
                android:text="2022-04-15"
                android:textColor="@color/col_6b3"
                android:textSize="@dimen/sp_16"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <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"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/mTvStatus" />

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:orientation="vertical"
                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/mStomach"
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    app:image="@mipmap/ic_test"
                    app:status_txt="健康"
                    app:viscera="@string/stomach" />

                <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:status_txt="健康"
                    app:viscera="@string/lung" />

                <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/mLiver"
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    app:image="@mipmap/ic_test"
                    app:status_txt="健康"
                    app:viscera="@string/liver" />

                <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:status_txt="健康"
                    app:viscera="@string/spleen" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:orientation="vertical"
                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/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/mSmall"
                    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/small_intestine" />

                <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:is_right="true"
                    app:status_txt="健康"
                    app:viscera="@string/lymph" />

                <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" />

                <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:is_right="true"
                    app:status_txt="健康"
                    app:viscera="@string/bladder" />

                <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:is_right="true"
                    app:status_txt="健康"
                    app:viscera="@string/pericardium" />
            </LinearLayout>



            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/mRecycle1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:overScrollMode="never"
                android:padding="@dimen/dp_10"
                android:layout_marginTop="@dimen/dp_10"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/mBody" />

            <LinearLayout
                android:id="@+id/mChinese"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/dp_10"
                android:background="@drawable/shape_round_white"
                android:orientation="vertical"
                android:padding="@dimen/dp_10"
                android:visibility="gone"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/mBody">

                <TextView

                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="医学分析"
                    android:textColor="@color/col_009"
                    android:textSize="@dimen/dp_16" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:background="@drawable/shape_explain_bg"
                    android:gravity="center"
                    android:paddingLeft="@dimen/dp_5"
                    android:paddingTop="@dimen/dp_2"
                    android:paddingRight="@dimen/dp_5"
                    android:paddingBottom="@dimen/dp_2"
                    android:text="常见症状"
                    android:textColor="@color/col_f23"
                    android:textSize="@dimen/dp_12"
                    android:visibility="gone" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/dp_10"
                android:background="@drawable/shape_round_white"
                android:orientation="vertical"
                android:padding="@dimen/dp_10"
                android:visibility="gone"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/mChinese">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="西医评估"
                    android:textColor="@color/col_009"
                    android:textSize="@dimen/dp_16" />

                <TextView
                    android:id="@+id/mWestContent"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:text="身体健康"
                    android:textColor="@color/col_455"
                    android:textSize="@dimen/dp_16" />


            </LinearLayout>
        </androidx.constraintlayout.widget.ConstraintLayout>
    </androidx.core.widget.NestedScrollView>


    <TextView
        android:id="@+id/mGuid"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="@dimen/dp_20"
        android:layout_marginTop="@dimen/dp_20"
        android:layout_marginEnd="@dimen/dp_20"
        android:layout_marginBottom="@dimen/dp_20"
        android:background="@drawable/shape_btn_select_bg"
        android:gravity="center"
        android:padding="@dimen/dp_10"
        android:text="@string/health_guid"
        android:textColor="@color/white"
        android:textSize="@dimen/dp_16" />
</RelativeLayout>