setOnlySpectrumMode

Configures the ColorPicker to only display the spectrum view. This method hides the tab layout and swatch view, making the color spectrum the sole method of color selection.

It also disables direct input into the HEX and RGB EditText fields by setting their input type to TYPE_NULL.

Key actions performed:

  • Hides the tab layout (mTabLayoutContainer).
  • Initializes the color spectrum view (mColorSpectrumView).
  • Ensures mIsSpectrumSelected is set to true.
  • Hides the swatch view container (mSwatchViewContainer).
  • Makes the spectrum view container (mSpectrumViewContainer) visible.
  • Disables text input for HEX, Red, Green, and Blue EditText fields.