<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.ConstraintLayout
    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="#E0E4E5">
    <androidx.constraintlayout.ConstraintLayout
        android:id="@+id/linearLayout4"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        android:orientation="horizontal"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">
        <TextView
            android:id="@+id/textView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="환부이미지촬영"
            android:textSize="19dp"
            android:fontFamily="@font/nanum_square_bold_font"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <ImageButton
            android:id="@+id/imageButton"
            android:layout_width="21dp"
            android:layout_height="21dp"
            android:background="@null"
            android:scaleType="fitXY"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:srcCompat="@drawable/close_x" />
    </androidx.constraintlayout.ConstraintLayout>

    <android.support.v7.widget.CardView
        android:id="@+id/linearLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        android:layout_gravity="center"
        app:cardBackgroundColor="#EDEEEF"
        app:cardCornerRadius="5dp"
        app:cardElevation="0dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/linearLayout4">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:orientation="horizontal">
                <Button
                    android:id="@+id/patientNm"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="김길동"
                    android:fontFamily="@font/nanum_square_bold_font"
                    android:textSize="18dp"
                    android:background="@null" />

                <Button
                    android:id="@+id/patientId"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="20 / M"
                    android:fontFamily="@font/nanum_square_bold_font"
                    android:textSize="18dp"
                    android:layout_weight="1"
                    android:background="@null" />
                <!--
                <Button
                    android:id="@+id/patientId2"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text=""
                    android:fontFamily="@font/nanum_square_bold_font"
                    android:textSize="18dp"
                    android:background="@null" />
                -->
                <Button
                    android:id="@+id/agegender"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="1000001"
                    android:fontFamily="@font/nanum_square_bold_font"
                    android:textSize="18dp"
                    android:layout_weight="1"
                    android:background="@null" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:orientation="horizontal"
                android:gravity="center">
                <Button
                    android:id="@+id/deptNm"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="내용"
                    android:fontFamily="@font/nanum_square_regular_font"
                    android:textSize="15dp"
                    android:background="@null" />

                <Button
                    android:id="@+id/treatClsKr"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="내용텍스트\n들어감"
                    android:fontFamily="@font/nanum_square_regular_font"
                    android:textSize="15dp"
                    android:layout_weight="1"
                    android:background="@null" />
                <!--
                <Button
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text=""
                    android:fontFamily="@font/nanum_square_regular_font"
                    android:textSize="15dp"
                    android:background="@null" />
                -->
                <Button
                    android:id="@+id/doctorNm"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="내용텍스트\n들어감"
                    android:fontFamily="@font/nanum_square_regular_font"
                    android:textSize="15dp"
                    android:layout_weight="1"
                    android:background="@null" />
            </LinearLayout>
        </LinearLayout>
    </android.support.v7.widget.CardView>

    <android.support.v7.widget.CardView
        android:id="@+id/cardView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginTop="6dp"
        android:layout_marginEnd="8dp"
        app:cardBackgroundColor="#EDEEEF"
        app:cardCornerRadius="5dp"
        app:cardElevation="0dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/linearLayout">
        <Button
            android:id="@+id/titles"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp"
            android:background="@null"
            android:fontFamily="@font/nanum_square_bold_font"
            android:text="2019-10-10, 외래 or 입원, 진료과"
            android:textAlignment="textStart"
            android:textColor="#649AFC"
            android:textSize="18dp" />
    </android.support.v7.widget.CardView>

    <RelativeLayout
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginTop="10dp"
        app:layout_constraintBottom_toBottomOf="@+id/linearLayout2"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/cardView">
        <TextureView
            android:id="@+id/cPreview"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
        </TextureView>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:layout_marginRight="92dp"
            android:layout_marginLeft="92dp"
            android:src="@drawable/camera_lo" />
    </RelativeLayout>

    <LinearLayout
        android:id="@+id/linearLayout2"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_marginStart="25dp"
        android:layout_marginEnd="25dp"
        android:layout_marginBottom="6dp"
        android:gravity="bottom|center"
        android:orientation="horizontal"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent">
        <ImageButton
            android:id="@+id/bt_gallary"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="@drawable/f_btn_list"
            android:scaleType="fitCenter"
            android:background="@null"
            android:layout_weight="1" />

        <ImageButton
            android:id="@+id/btnCam"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="@drawable/f_btn_camera"
            android:scaleType="fitCenter"
            android:background="@null"
            android:layout_weight="1" />

        <ImageButton
            android:id="@+id/bt_finish"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="@drawable/f_btn_back"
            android:scaleType="fitCenter"
            android:background="@null"
            android:layout_weight="1" />
    </LinearLayout>
</androidx.constraintlayout.ConstraintLayout>
