QuadFlask / colorpicker

🍭color picker for android
1.22k stars 219 forks source link

Remove slidebar #72

Closed OhhConti closed 6 years ago

OhhConti commented 7 years ago

Hi, I want to know if there is the possibility to remove the sliders, thanks.

gitdefllo commented 7 years ago

Did you try something like mColorPickerView.setLightnessSlider(null); and mColorPickerView.setAlphaSlider(null);? Not sure it's working, however, it's possible by XML. Simply add the widget without the sliders:

<com.flask.colorpicker.ColorPickerView
    android:id="@+id/picker_background_color"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:lightnessSlider="false"
    app:alphaSlider="false"
    app:wheelType="FLOWER"
    app:density="12"/>

Nothing more. This will just display the wheel.