Class ColorPickerInspectorView

  • All Implemented Interfaces:
    android.graphics.drawable.Drawable.Callback , android.view.KeyEvent.Callback , android.view.ViewManager , android.view.ViewParent , android.view.accessibility.AccessibilityEventSource , com.pspdfkit.ui.inspector.PropertyInspectorView

    
    public class ColorPickerInspectorView
    extends FrameLayout implements PropertyInspectorView
                        

    Inspector component for picking colors.

    • Constructor Detail

      • ColorPickerInspectorView

        ColorPickerInspectorView(Context context, String label, Array<int> colors, int defaultValue, ColorPickerInspectorView.ColorPickerListener listener)
        Construct color picker.
        Parameters:
        context - The context to use.
        label - Label displayed before slider view.
        colors - Available drawing colors.
        defaultValue - Default displayed color.
        listener - Listener for color picker changes.
      • ColorPickerInspectorView

        ColorPickerInspectorView(Context context, String label, List<Integer> colors, int defaultValue, ColorPickerInspectorView.ColorPickerListener listener)
        Construct color picker.
        Parameters:
        context - The context to use.
        label - Label displayed before slider view.
        colors - Available drawing colors.
        defaultValue - Default displayed color.
        listener - Listener for color picker changes.