<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <com.google.android.flexbox.FlexboxLayout
            android:id="@+id/colorPicker"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/spacer_2x"
            app:alignItems="stretch"
            app:flexWrap="wrap"
            app:justifyContent="space_between">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/customColorChooser"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/spacer_1x"
                android:contentDescription="@string/pick_custom_color"
                app:layout_flexBasisPercent="15%"
                app:srcCompat="@drawable/circle_alpha_colorize_36dp" />
        </com.google.android.flexbox.FlexboxLayout>

        <com.skydoves.colorpickerview.ColorPickerView
            android:id="@+id/customColorPicker"
            android:layout_width="200dp"
            android:layout_height="200dp"
            android:layout_gravity="center"
            android:layout_marginTop="10dp"
            android:visibility="gone"
            app:selector="@drawable/colorpickerview_wheel"
            tools:visibility="visible" />

        <com.skydoves.colorpickerview.sliders.BrightnessSlideBar
            android:id="@+id/brightnessSlide"
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginTop="10dp"
            android:visibility="gone"
            app:borderColor_BrightnessSlider="@android:color/darker_gray"
            app:borderSize_BrightnessSlider="5"
            app:selector_BrightnessSlider="@drawable/colorpickerview_wheel"
            tools:visibility="visible" />
    </LinearLayout>
</ScrollView>