code: private void initialize() {
          LayoutInflater inflater = LayoutInflater.from(getContext());
          inflater.inflate(R.layout.color_palette_item, this, true);
          colorView = findViewById(R.id.color_view);
          selectionView = findViewById(R.id.selection_view);
          adaptSelectionView();
      }
docs: Initializes the view.