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();
    }
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 ( ) ; }
Initializes the view.