QuadFlask / colorpicker

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

Use as a View #45

Closed matthew-carroll closed 8 years ago

matthew-carroll commented 8 years ago

Is there a direct way to use this widget as a View within a standard View hierarchy instead of in a dialog? If not, is there any plan to facilitate this?

QuadFlask commented 8 years ago

You can use it as a View

<com.flask.colorpicker.ColorPickerView
    android:id="@+id/color_picker_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:alphaSlider="true"
    app:density="12"
    app:lightnessSlider="true"
    app:wheelType="FLOWER"
    app:lightnessSliderView="@+id/v_lightness_slider"
    app:alphaSliderView="@+id/v_alpha_slider"
/>