최종 팀프로젝트 TIL(8)

jxxn_a·2023년 10월 19일
0

팀프로젝트

목록 보기
13/33

🐱 With All My Animal 🐶

💡 [ 8일차 10/19일 ] 💡

📌 일지 템플릿 UI 수정 시도 과정

  • 우선 수정 전 코드를 살펴보면 constraintlayout에 ScrollView를 넣어서 작동을 할 수 있게 UI를 구성해보았지만, 일부가 잘려서 나오거나 스크롤뷰의 범위를 벗어나거나, 또 다른 view가 보이기 시작해서 삽질을 해보았지만 결국 해결이 되지 않았다.

  • 내가 시도한 방법은 크기를 match -> wrap, 0dp, 크기조정으로 해보았고, 저장 버튼을 아예 다른 곳으로 빼서 적용해보기도 했다.

  • 하지만 원하는 UI가 나오지 않았고, 결국 튜터님의 도움을 받았다.

<?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/con_hostpital"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar_mypage_hospital"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/yellow"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/tv_mypage_hospital"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:fontFamily="@font/cafe24"
        android:text="일지 작성"
        android:textColor="@color/black"
        android:textSize="20sp"
        app:layout_constraintBottom_toBottomOf="@id/toolbar_mypage_hospital"
        app:layout_constraintEnd_toEndOf="@id/toolbar_mypage_hospital"
        app:layout_constraintStart_toStartOf="@id/toolbar_mypage_hospital"
        app:layout_constraintTop_toTopOf="@id/toolbar_mypage_hospital" />

    <ImageButton
        android:id="@+id/btn_mypage_hospital_back"
        android:layout_width="70dp"
        android:layout_height="65dp"
        android:background="@android:color/transparent"
        android:padding="15dp"
        android:scaleType="fitCenter"
        android:src="@drawable/image_back"
        app:layout_constraintBottom_toBottomOf="@id/toolbar_mypage_hospital"
        app:layout_constraintStart_toStartOf="@id/toolbar_mypage_hospital"
        app:layout_constraintTop_toTopOf="@id/toolbar_mypage_hospital" />

    <TextView
        android:id="@+id/btn_mypage_hospital_tag"
        android:layout_width="80dp"
        android:layout_height="40dp"
        android:layout_marginEnd="20dp"
        android:background="@drawable/mypage_btn_tag_background"
        android:fontFamily="@font/cafe24"
        android:gravity="center"
        android:text="병원"
        android:textColor="@color/black"
        android:textSize="16sp"
        app:layout_constraintBottom_toBottomOf="@id/toolbar_mypage_hospital"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@id/toolbar_mypage_hospital" />

    <ScrollView
        android:id="@+id/scrollview"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginVertical="5dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/toolbar_mypage_hospital">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/con_mypage_hospital"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_marginHorizontal="20dp"
            android:layout_marginTop="20dp"
            android:background="@drawable/mypage_diary_background"
            android:paddingBottom="20dp">

            <EditText
                android:id="@+id/etv_mypage_hospital_title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="20dp"
                android:layout_marginVertical="20dp"
                android:background="@drawable/mypage_diary_edittext"
                android:fontFamily="@font/cafe24"
                android:gravity="center_vertical"
                android:hint="제목을 입력해주세요"
                android:padding="20dp"
                android:textColor="@color/black"
                android:textSize="16sp"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toTopOf="@id/con_mypage_hospital" />

            <View
                android:id="@+id/view_mypage_hospital_line_top"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginHorizontal="30dp"
                android:layout_marginVertical="20dp"
                android:background="@color/black"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_title" />

            <ImageView
                android:id="@+id/iv_mypage_hospital_picture_left"
                android:layout_width="120dp"
                android:layout_height="120dp"
                android:layout_margin="20dp"
                android:background="@drawable/mypage_diary_picture_background"
                app:layout_constraintBottom_toTopOf="@id/view_mypage_hospital_line_bottom"
                app:layout_constraintEnd_toStartOf="@id/iv_mypage_hospital_picture_right"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/view_mypage_hospital_line_top" />

            <ImageView
                android:id="@+id/iv_mypage_hospital_picture_right"
                android:layout_width="120dp"
                android:layout_height="120dp"
                android:layout_margin="20dp"
                android:background="@drawable/mypage_diary_picture_background"
                app:layout_constraintBottom_toTopOf="@id/view_mypage_hospital_line_bottom"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toEndOf="@id/iv_mypage_hospital_picture_left"
                app:layout_constraintTop_toBottomOf="@id/view_mypage_hospital_line_top" />

            <View
                android:id="@+id/view_mypage_hospital_line_bottom"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginHorizontal="30dp"
                android:background="@color/black"
                app:layout_constraintBottom_toTopOf="@id/tv_mypage_hospital_date"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/iv_mypage_hospital_picture_left" />

            <TextView
                android:id="@+id/tv_mypage_hospital_date"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="50dp"
                android:layout_marginTop="15dp"
                android:fontFamily="@font/cafe24"
                android:text="병원 방문 날짜"
                android:textColor="@color/black"
                android:textSize="14sp"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/view_mypage_hospital_line_bottom" />

            <DatePicker
                android:id="@+id/dp_mypage_hospital"
                android:layout_width="320dp"
                android:layout_height="90dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/mypage_diary_edittext"
                android:calendarViewShown="false"
                android:datePickerMode="spinner"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/tv_mypage_hospital_date" />

            <TextView
                android:id="@+id/tv_mypage_hospital_expense"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="50dp"
                android:layout_marginTop="30dp"
                android:fontFamily="@font/cafe24"
                android:text="병원 진료 비용"
                android:textColor="@color/black"
                android:textSize="14sp"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/dp_mypage_hospital" />

            <EditText
                android:id="@+id/etv_mypage_hospital_expense"
                android:layout_width="180dp"
                android:layout_height="40dp"
                android:background="@drawable/mypage_diary_edittext"
                android:fontFamily="@font/cafe24"
                android:hint="진료 비용을 입력해주세요"
                android:paddingStart="20dp"
                android:textColor="@color/black"
                android:textSize="13sp"
                app:layout_constraintBottom_toBottomOf="@id/tv_mypage_hospital_expense"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toEndOf="@id/tv_mypage_hospital_expense"
                app:layout_constraintTop_toTopOf="@id/tv_mypage_hospital_expense" />

            <TextView
                android:id="@+id/tv_mypage_hospital_location"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="50dp"
                android:layout_marginTop="50dp"
                android:fontFamily="@font/cafe24"
                android:text="병원 지역"
                android:textColor="@color/black"
                android:textSize="14sp"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_expense" />

            <EditText
                android:id="@+id/sp_mypage_hospital"
                android:layout_width="180dp"
                android:layout_height="40dp"
                android:layout_marginStart="30dp"
                android:background="@drawable/mypage_diary_edittext"
                android:fontFamily="@font/cafe24"
                android:hint="지역을 입력해주세요"
                android:paddingStart="20dp"
                android:textColor="@color/black"
                android:textSize="13sp"
                app:layout_constraintBottom_toBottomOf="@id/tv_mypage_hospital_location"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toEndOf="@id/tv_mypage_hospital_location"
                app:layout_constraintTop_toTopOf="@id/tv_mypage_hospital_location" />

            <TextView
                android:id="@+id/tv_mypage_hospital_checkup"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="50dp"
                android:layout_marginTop="50dp"
                android:fontFamily="@font/cafe24"
                android:text="질환 / 검진"
                android:textColor="@color/black"
                android:textSize="14sp"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_location" />

            <EditText
                android:id="@+id/etv_mypage_hospital_checkup"
                android:layout_width="200dp"
                android:layout_height="40dp"
                android:background="@drawable/mypage_diary_edittext"
                android:fontFamily="@font/cafe24"
                android:hint="질환 / 검진을 입력해주세요"
                android:paddingStart="20dp"
                android:textColor="@color/black"
                android:textSize="13sp"
                app:layout_constraintBottom_toBottomOf="@id/tv_mypage_hospital_checkup"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toEndOf="@id/tv_mypage_hospital_checkup"
                app:layout_constraintTop_toTopOf="@id/tv_mypage_hospital_checkup" />

            <TextView
                android:id="@+id/tv_mypage_hospital_tag"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="50dp"
                android:layout_marginTop="30dp"
                android:fontFamily="@font/cafe24"
                android:text="태그(최대 3줄)"
                android:textColor="@color/black"
                android:textSize="14sp"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_checkup" />

            <EditText
                android:id="@+id/etv_mypage_hospital_tag"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="20dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/mypage_diary_edittext"
                android:fontFamily="@font/cafe24"
                android:hint="태그를 작성해주세요"
                android:padding="20dp"
                android:textColor="@color/black"
                android:textSize="13sp"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_tag" />

            <TextView
                android:id="@+id/tv_mypage_hospital_review"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="50dp"
                android:layout_marginTop="30dp"
                android:fontFamily="@font/cafe24"
                android:text="내용 / 후기"
                android:textColor="@color/black"
                android:textSize="14sp"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_tag" />

            <EditText
                android:id="@+id/etv_mypage_hospital_review"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="20dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/mypage_diary_edittext"
                android:fontFamily="@font/cafe24"
                android:hint="내용 / 후기를 작성해주세요"
                android:padding="20dp"
                android:textColor="@color/black"
                android:textSize="13sp"
                app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_review" />

            <androidx.appcompat.widget.AppCompatButton
                android:id="@+id/btn_mypage_hospital_save"
                android:layout_width="100dp"
                android:layout_height="50dp"
                android:layout_marginTop="20dp"
                android:background="@drawable/mypage_btn_tag_background"
                android:fontFamily="@font/cafe24"
                android:text="저장"
                android:textColor="@color/black"
                android:textSize="20sp"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_review" />

        </androidx.constraintlayout.widget.ConstraintLayout>
    </ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

📌 일지 템플릿 UI 수정 완료

  • 일단 고친 방법을 설명하자면 ScrollView 안에 있는 Constraintlayout을 다른 layout으로 한 번 더 감싸주어야한다.

  • 자세한 이유는 모르겠지만 여기서는 Linearlayout으로 감싸준 뒤 marginVertical을 주어서 내가 원하는 UI가 만들어진 것을 확인 할 수있었다.

<?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/con_hostpital"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar_mypage_hospital"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/yellow"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/tv_mypage_hospital"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:fontFamily="@font/cafe24"
        android:text="일지 작성"
        android:textColor="@color/black"
        android:textSize="20sp"
        app:layout_constraintBottom_toBottomOf="@id/toolbar_mypage_hospital"
        app:layout_constraintEnd_toEndOf="@id/toolbar_mypage_hospital"
        app:layout_constraintStart_toStartOf="@id/toolbar_mypage_hospital"
        app:layout_constraintTop_toTopOf="@id/toolbar_mypage_hospital" />

    <ImageButton
        android:id="@+id/btn_mypage_hospital_back"
        android:layout_width="70dp"
        android:layout_height="65dp"
        android:background="@android:color/transparent"
        android:padding="15dp"
        android:scaleType="fitCenter"
        android:src="@drawable/image_back"
        app:layout_constraintBottom_toBottomOf="@id/toolbar_mypage_hospital"
        app:layout_constraintStart_toStartOf="@id/toolbar_mypage_hospital"
        app:layout_constraintTop_toTopOf="@id/toolbar_mypage_hospital" />

    <TextView
        android:id="@+id/btn_mypage_hospital_tag"
        android:layout_width="80dp"
        android:layout_height="40dp"
        android:layout_marginEnd="20dp"
        android:background="@drawable/mypage_btn_tag_background"
        android:fontFamily="@font/cafe24"
        android:gravity="center"
        android:text="병원"
        android:textColor="@color/black"
        android:textSize="16sp"
        app:layout_constraintBottom_toBottomOf="@id/toolbar_mypage_hospital"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@id/toolbar_mypage_hospital" />

    <ScrollView
        android:id="@+id/mypage_hospital_scrollview"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/toolbar_mypage_hospital">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingVertical="20dp">

            <androidx.constraintlayout.widget.ConstraintLayout
                android:id="@+id/con_mypage_hospital"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="20dp"
                android:background="@drawable/mypage_diary_background">

                <EditText
                    android:id="@+id/etv_mypage_hospital_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginHorizontal="20dp"
                    android:layout_marginVertical="20dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:fontFamily="@font/cafe24"
                    android:gravity="center_vertical"
                    android:hint="제목을 입력해주세요"
                    android:padding="20dp"
                    android:textColor="@color/black"
                    android:textSize="16sp"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toTopOf="@id/con_mypage_hospital" />

                <View
                    android:id="@+id/view_mypage_hospital_line_top"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginHorizontal="20dp"
                    android:layout_marginVertical="20dp"
                    android:background="@color/black"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_title" />


                <ImageView
                    android:id="@+id/iv_mypage_hospital_picture_left"
                    android:layout_width="match_parent"
                    android:layout_height="200dp"
                    android:padding="10dp"
                    android:scaleType="fitCenter"
                    android:src="@drawable/add_image"
                    app:layout_constraintBottom_toTopOf="@id/view_mypage_hospital_line_bottom"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/view_mypage_hospital_line_top" />

                <View
                    android:id="@+id/view_mypage_hospital_line_bottom"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginHorizontal="20dp"
                    android:background="@color/black"
                    app:layout_constraintBottom_toTopOf="@id/tv_mypage_hospital_date"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/iv_mypage_hospital_picture_left" />

                <TextView
                    android:id="@+id/tv_mypage_hospital_date"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="50dp"
                    android:layout_marginTop="15dp"
                    android:fontFamily="@font/cafe24"
                    android:text="병원 방문 날짜"
                    android:textColor="@color/black"
                    android:textSize="14sp"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/view_mypage_hospital_line_bottom" />

                <DatePicker
                    android:id="@+id/dp_mypage_hospital"
                    android:layout_width="320dp"
                    android:layout_height="90dp"
                    android:layout_marginTop="10dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:calendarViewShown="false"
                    android:datePickerMode="spinner"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toBottomOf="@+id/tv_mypage_hospital_date" />

                <TextView
                    android:id="@+id/tv_mypage_hospital_expense"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="50dp"
                    android:layout_marginTop="30dp"
                    android:fontFamily="@font/cafe24"
                    android:text="진료 비용"
                    android:textColor="@color/black"
                    android:textSize="14sp"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/dp_mypage_hospital" />

                <EditText
                    android:id="@+id/etv_mypage_hospital_expense"
                    android:layout_width="200dp"
                    android:layout_height="40dp"
                    android:layout_marginStart="15dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:fontFamily="@font/cafe24"
                    android:hint="진료 비용을 입력해주세요"
                    android:paddingStart="20dp"
                    android:textColor="@color/black"
                    android:textSize="13sp"
                    app:layout_constraintBottom_toBottomOf="@id/tv_mypage_hospital_expense"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toEndOf="@id/tv_mypage_hospital_expense"
                    app:layout_constraintTop_toTopOf="@id/tv_mypage_hospital_expense" />

                <TextView
                    android:id="@+id/tv_mypage_hospital_location"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="50dp"
                    android:layout_marginTop="50dp"
                    android:fontFamily="@font/cafe24"
                    android:text="병원 지역"
                    android:textColor="@color/black"
                    android:textSize="14sp"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_expense" />

                <EditText
                    android:id="@+id/sp_mypage_hospital"
                    android:layout_width="200dp"
                    android:layout_height="40dp"
                    android:layout_marginStart="15dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:fontFamily="@font/cafe24"
                    android:hint="지역을 입력해주세요"
                    android:paddingStart="20dp"
                    android:textColor="@color/black"
                    android:textSize="13sp"
                    app:layout_constraintBottom_toBottomOf="@id/tv_mypage_hospital_location"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toEndOf="@id/tv_mypage_hospital_location"
                    app:layout_constraintTop_toTopOf="@id/tv_mypage_hospital_location" />

                <TextView
                    android:id="@+id/tv_mypage_hospital_checkup"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="50dp"
                    android:layout_marginTop="50dp"
                    android:fontFamily="@font/cafe24"
                    android:text="질환 / 검진"
                    android:textColor="@color/black"
                    android:textSize="14sp"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_location" />

                <EditText
                    android:id="@+id/etv_mypage_hospital_checkup"
                    android:layout_width="200dp"
                    android:layout_height="40dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:fontFamily="@font/cafe24"
                    android:hint="질환 / 검진을 입력해주세요"
                    android:paddingStart="20dp"
                    android:textColor="@color/black"
                    android:textSize="13sp"
                    app:layout_constraintBottom_toBottomOf="@id/tv_mypage_hospital_checkup"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toEndOf="@id/tv_mypage_hospital_checkup"
                    app:layout_constraintTop_toTopOf="@id/tv_mypage_hospital_checkup" />

                <TextView
                    android:id="@+id/tv_mypage_hospital_tag"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="50dp"
                    android:layout_marginTop="30dp"
                    android:fontFamily="@font/cafe24"
                    android:text="태그(최대 3줄)"
                    android:textColor="@color/black"
                    android:textSize="14sp"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_checkup" />

                <EditText
                    android:id="@+id/etv_mypage_hospital_tag"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginHorizontal="20dp"
                    android:layout_marginTop="10dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:fontFamily="@font/cafe24"
                    android:hint="태그를 작성해주세요"
                    android:padding="20dp"
                    android:textColor="@color/black"
                    android:textSize="13sp"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_tag" />

                <TextView
                    android:id="@+id/tv_mypage_hospital_review"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="50dp"
                    android:layout_marginTop="30dp"
                    android:fontFamily="@font/cafe24"
                    android:text="내용 / 후기"
                    android:textColor="@color/black"
                    android:textSize="14sp"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_tag" />

                <EditText
                    android:id="@+id/etv_mypage_hospital_review"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginHorizontal="20dp"
                    android:layout_marginTop="10dp"
                    android:background="@drawable/mypage_diary_edittext"
                    android:fontFamily="@font/cafe24"
                    android:hint="내용 / 후기를 작성해주세요"
                    android:padding="20dp"
                    android:textColor="@color/black"
                    android:textSize="13sp"
                    app:layout_constraintEnd_toEndOf="@id/con_mypage_hospital"
                    app:layout_constraintStart_toStartOf="@id/con_mypage_hospital"
                    app:layout_constraintTop_toBottomOf="@id/tv_mypage_hospital_review" />

                <androidx.appcompat.widget.AppCompatButton
                    android:id="@+id/btn_mypage_hospital_save"
                    android:layout_width="100dp"
                    android:layout_height="50dp"
                    android:layout_marginVertical="20dp"
                    android:background="@drawable/mypage_btn_tag_background"
                    android:fontFamily="@font/cafe24"
                    android:text="저장"
                    android:textColor="@color/black"
                    android:textSize="20sp"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toBottomOf="@id/etv_mypage_hospital_review" />

            </androidx.constraintlayout.widget.ConstraintLayout>
        </LinearLayout>
    </ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

0개의 댓글