<?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:layout_width="@dimen/uxsdk_216_dp"
    android:layout_height="wrap_content">

    <FrameLayout
        android:id="@+id/header"
        android:layout_width="match_parent"
        android:layout_height="@dimen/uxsdk_52_dp"
        android:background="@color/uxsdk_fpv_popover_title_background_color"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <dji.v5.ux.core.ui.component.SegmentedButtonGroup
            android:id="@+id/segmented_button_group"
            android:layout_width="wrap_content"
            android:layout_height="@dimen/uxsdk_32_dp"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="@dimen/uxsdk_8_dp">

            <ImageView
                android:id="@+id/stream_selection"
                android:layout_width="@dimen/uxsdk_32_dp"
                android:layout_height="@dimen/uxsdk_28_dp"
                android:paddingStart="@dimen/uxsdk_4_dp"
                android:paddingTop="@dimen/uxsdk_2_dp"
                android:paddingEnd="@dimen/uxsdk_4_dp"
                android:paddingBottom="@dimen/uxsdk_2_dp"
                android:scaleType="fitCenter"
                android:src="@drawable/uxsdk_selector_src_palette_icon" />

            <ImageView
                android:id="@+id/stream_palette_bar"
                android:layout_width="@dimen/uxsdk_32_dp"
                android:layout_height="@dimen/uxsdk_28_dp"
                android:paddingStart="@dimen/uxsdk_4_dp"
                android:paddingTop="@dimen/uxsdk_2_dp"
                android:paddingEnd="@dimen/uxsdk_4_dp"
                android:paddingBottom="@dimen/uxsdk_2_dp"
                android:src="@drawable/uxsdk_selector_src_isotherm_icon" />
        </dji.v5.ux.core.ui.component.SegmentedButtonGroup>
    </FrameLayout>

    <dji.v5.ux.visualcamera.ndvi.NDVIStreamSelectionPanelWidget
        android:id="@+id/palette_selection_panel"
        android:background="@color/uxsdk_fpv_popover_content_background_color"
        android:layout_width="match_parent"
        android:layout_height="@dimen/uxsdk_160_dp"
        app:layout_constraintTop_toBottomOf="@id/header"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"/>

    <dji.v5.ux.visualcamera.ndvi.NDVIStreamPaletteBarPanel
        android:id="@+id/isotherm_selection_panel"
        android:visibility="gone"
        android:background="@color/uxsdk_fpv_popover_content_background_color"
        android:layout_width="match_parent"
        android:layout_height="@dimen/uxsdk_80_dp"
        app:layout_constraintTop_toBottomOf="@id/header"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"/>


</androidx.constraintlayout.widget.ConstraintLayout>