<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:background="@color/col_6f7"
    android:layout_height="match_parent">

    <include
        android:id="@+id/title"
        layout="@layout/title_white_bar" />

    <androidx.core.widget.NestedScrollView
        android:layout_above="@+id/mSubmit"
        android:layout_width="match_parent"
        android:layout_below="@+id/title"
        android:layout_height="wrap_content">

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

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/dp_14"
                android:background="@drawable/shape_round_white"
                android:orientation="vertical">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:paddingRight="@dimen/dp_10">


                    <com.xty.common.weight.RequiredTextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:layout_weight="1"
                        android:drawablePadding="@dimen/dp_10"
                        android:ellipsize="end"
                        android:paddingLeft="@dimen/dp_10"
                        android:paddingTop="@dimen/dp_15"
                        android:paddingBottom="@dimen/dp_15"
                        android:singleLine="true"
                        android:text="@string/sex"
                        android:textColor="@color/col_7c7"
                        android:textSize="@dimen/sp_15" />
                    <CheckBox
                        android:id="@+id/check_sex"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:checked="false"
                        android:background="@drawable/selector_check_sex_new"
                        android:button="@null"
                        />

                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginLeft="@dimen/dp_10"
                    android:layout_marginRight="@dimen/dp_10"
                    android:background="@color/col_f1f" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:paddingRight="@dimen/dp_10">


                    <com.xty.common.weight.RequiredTextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:layout_weight="1"
                        android:drawablePadding="@dimen/dp_10"
                        android:ellipsize="end"
                        android:paddingLeft="@dimen/dp_10"
                        android:paddingTop="@dimen/dp_15"
                        android:paddingBottom="@dimen/dp_15"
                        android:singleLine="true"
                        android:text="生日类型"
                        android:textColor="@color/col_7c7"
                        android:textSize="@dimen/sp_15" />
                    <CheckBox
                        android:id="@+id/check_birthday"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:checked="true"
                        android:button="@null"
                        />

                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginLeft="@dimen/dp_10"
                    android:layout_marginRight="@dimen/dp_10"
                    android:background="@color/col_f1f" />

                <LinearLayout
                    android:id="@+id/ll_birthday_layout"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingEnd="@dimen/dp_10"
                    android:orientation="horizontal">

                    <com.xty.common.weight.RequiredTextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:layout_centerVertical="true"
                        android:drawablePadding="@dimen/dp_10"
                        android:ellipsize="end"
                        android:paddingLeft="@dimen/dp_10"
                        android:paddingTop="@dimen/dp_15"
                        android:paddingBottom="@dimen/dp_15"
                        android:singleLine="true"
                        android:text="@string/birthday"
                        android:textColor="@color/col_7c7"
                        android:textSize="@dimen/sp_15" />


                    <TextView
                        android:id="@+id/mBirthday"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="0.8"
                        android:background="@null"
                        android:drawableRight="@mipmap/ic_next"
                        android:drawablePadding="@dimen/dp_6"
                        android:gravity="right"
                        android:hint="请选择出生日期"
                        android:paddingLeft="@dimen/dp_4"
                        android:paddingTop="@dimen/dp_10"
                        android:paddingBottom="@dimen/dp_10"
                        android:textColorHint="@color/col_6B6"
                        android:textColor="@color/col_313"
                        android:singleLine="true"
                        tools:text="2032-33-32"
                        android:textSize="@dimen/sp_15" />

                </LinearLayout>
                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginLeft="@dimen/dp_10"
                    android:layout_marginRight="@dimen/dp_10"
                    android:background="@color/col_f1f" />

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingRight="@dimen/dp_10">


                    <com.xty.common.weight.RequiredTextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:drawablePadding="@dimen/dp_10"
                        android:ellipsize="end"
                        android:paddingLeft="@dimen/dp_10"
                        android:paddingTop="@dimen/dp_15"
                        android:paddingBottom="@dimen/dp_15"
                        android:singleLine="true"
                        android:text="@string/height"
                        android:textColor="@color/col_7c7"
                        android:textSize="@dimen/sp_15" />

                    <EditText
                        android:id="@+id/mHeight"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:layout_toLeftOf="@+id/mHUnit"
                        android:background="@null"
                        android:gravity="center|right"
                        android:hint="@string/please_input_height"
                        android:textColorHint="@color/col_6B6"
                        android:inputType="numberDecimal"
                        android:maxLength="10"
                        android:paddingTop="@dimen/dp_15"
                        android:paddingRight="@dimen/dp_10"
                        android:paddingBottom="@dimen/dp_15"
                        android:singleLine="true"
                        android:textColor="@color/col_313"
                        android:textSize="@dimen/sp_15" />

                    <TextView
                        android:id="@+id/mHUnit"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentRight="true"
                        android:layout_centerVertical="true"
                        android:text="cm"
                        android:textColor="@color/col_455"
                        android:textSize="@dimen/dp_16" />
                </RelativeLayout>
            </LinearLayout>

            <TextView
                android:id="@+id/tvHint"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/dp_15"
                android:layout_marginEnd="@dimen/dp_15"
                android:textSize="@dimen/sp_15"
                android:text="温馨提示：请确保您的基础信息无误，以帮助我们更准确的测量体脂信息。"
                android:textColor="@color/col_7c7"/>
        </LinearLayout>


    </androidx.core.widget.NestedScrollView>

    <TextView
        android:id="@+id/mSubmit"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_marginLeft="@dimen/dp_20"
        android:layout_marginTop="@dimen/dp_20"
        android:layout_marginRight="@dimen/dp_20"
        android:layout_marginBottom="@dimen/dp_10"
        android:background="@drawable/shape_btn_select_bg"
        android:gravity="center"
        android:padding="@dimen/dp_12"
        android:text="确 认"
        android:textColor="@color/white"
        android:textSize="@dimen/sp_18" />
</RelativeLayout>