<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/container_main_hourly_trend_card"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.ExtraLarge"
    app:strokeWidth="0dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/nowcasting_block_title_icon"
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:importantForAccessibility="no"
            android:layout_marginStart="@dimen/large_margin"
            android:backgroundTint="?attr/colorSurfaceInverse"
            android:src="@drawable/ic_umbrella"
            app:layout_constraintBottom_toBottomOf="@+id/nowcasting_block_title"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/nowcasting_block_title" />

        <TextView
            android:id="@+id/nowcasting_block_title"
            android:accessibilityHeading="true"
            android:textAppearance="?attr/textAppearanceLabelLarge"
            android:textColor="?attr/colorSurfaceInverse"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/large_margin"
            android:layout_marginStart="8dp"
            app:layout_constraintStart_toEndOf="@+id/nowcasting_block_title_icon"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
            android:id="@+id/nowcasting_block_subtitle"
            android:layout_marginTop="2dp"
            android:layout_marginEnd="@dimen/large_margin"
            style="@style/content_text"
            tools:text="Rain Wednesday evening"
            app:layout_constraintTop_toBottomOf="@+id/nowcasting_block_title"
            app:layout_constraintStart_toStartOf="@+id/nowcasting_block_title_icon" />

        <com.patrykandpatrick.vico.views.cartesian.CartesianChartView
            android:id="@+id/container_main_minutely_chart"
            android:layout_width="match_parent"
            android:layout_height="@dimen/nowcasting_chart_height"
            android:layout_marginStart="4dp"
            android:layout_marginEnd="4dp"
            android:paddingBottom="@dimen/large_margin"
            app:scrollEnabled="false"
            app:chartStyle="@style/NowcastingChart"
            app:layout_constraintTop_toTopOf="@+id/nowcasting_block_subtitle"
            app:layout_constraintStart_toStartOf="parent" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</com.google.android.material.card.MaterialCardView>
