<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/main"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context=".ui.listDisease.DiseaseDetailActivity">
    <ImageView
        android:id="@+id/dgs_back"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/margin_screen"
        android:layout_marginStart="@dimen/margin_screen"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        android:src="@drawable/back_button"/>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginTop="@dimen/margin_component"
        app:layout_constraintTop_toBottomOf="@id/dgs_back"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent">
        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                android:id="@+id/image_disease"
                android:layout_width="match_parent"
                android:layout_height="185dp"
                android:layout_gravity="center"
                android:layout_marginHorizontal="@dimen/margin_screen"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                android:src="@drawable/dgs_wereng_img"/>

            <androidx.constraintlayout.widget.ConstraintLayout
                android:id="@+id/dd_cont_title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/margin_component"
                android:layout_marginHorizontal="@dimen/margin_screen"
                android:background="@color/primaryGreen"
                android:paddingHorizontal="5dp"
                android:paddingVertical="10dp"
                app:layout_constraintTop_toBottomOf="@id/image_disease">

                <TextView
                    android:id="@+id/title_disease"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:textAlignment="center"
                    android:textColor="@color/white"
                    android:textSize="24sp"
                    android:textStyle="bold"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent"
                    tools:text="Brown Spots" />
            </androidx.constraintlayout.widget.ConstraintLayout>

            <TextView
                android:id="@+id/tv_desc_disease"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                tools:text="Penjelasan Penyakit"
                android:textSize="18sp"
                android:textStyle="bold"
                android:layout_marginHorizontal="@dimen/margin_screen"
                android:layout_marginTop="@dimen/margin_component"
                android:textColor="@color/primaryGreen"
                app:layout_constraintTop_toBottomOf="@+id/dd_cont_title"/>

            <TextView
                android:id="@+id/desc_disease"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:justificationMode="inter_word"
                tools:text="deskripsi penyakit"
                android:textSize="16sp"
                android:layout_marginHorizontal="@dimen/margin_screen"
                app:layout_constraintTop_toBottomOf="@id/tv_desc_disease"
                app:layout_constraintStart_toStartOf="parent"/>

            <TextView
                android:id="@+id/tv_title_prevention"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                tools:text="Pencegahan"
                android:textSize="18sp"
                android:textStyle="bold"
                android:layout_marginHorizontal="@dimen/margin_screen"
                android:layout_marginTop="@dimen/margin_component"
                android:textColor="@color/primaryGreen"
                app:layout_constraintTop_toBottomOf="@+id/desc_disease"
                app:layout_constraintStart_toStartOf="parent"/>

            <TextView
                android:id="@+id/desc_prevention"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                tools:text="deskripsi pencegahan"
                android:justificationMode="inter_word"
                android:textSize="16sp"
                android:layout_marginHorizontal="@dimen/margin_screen"
                app:layout_constraintTop_toBottomOf="@id/tv_title_prevention"
                app:layout_constraintStart_toStartOf="parent" />

            <TextView
                android:id="@+id/tv_title_recommended"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                tools:text="Rekomendasi Penanganan"
                android:textSize="18sp"
                android:textStyle="bold"
                android:layout_marginHorizontal="@dimen/margin_screen"
                android:layout_marginTop="@dimen/margin_component"
                android:textColor="@color/primaryGreen"
                app:layout_constraintTop_toBottomOf="@+id/desc_prevention"
                app:layout_constraintStart_toStartOf="parent"/>

            <TextView
                android:id="@+id/desc_recommended"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                tools:text="desc Penanganan"
                android:justificationMode="inter_word"
                android:textSize="16sp"
                android:layout_marginHorizontal="@dimen/margin_screen"
                app:layout_constraintTop_toBottomOf="@id/tv_title_recommended"
                app:layout_constraintStart_toStartOf="parent" />

        </androidx.constraintlayout.widget.ConstraintLayout>

    </ScrollView>
    <ProgressBar
        android:id="@+id/progress_result"
        android:layout_gravity="center"
        android:visibility="invisible"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>