Class SliderPickerInspectorView

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

    public class SliderPickerInspectorView
    extends FrameLayout implements PropertyInspectorView

    Picker with slider for picking numbers from integer range.

    • Constructor Detail

      • SliderPickerInspectorView

        SliderPickerInspectorView(Context context, String label, String unitLabel, int minValue, int maxValue, int defaultValue, SliderPickerInspectorView.SliderPickerListener listener)
        Construct slider picker.
        context - The context to use.
        label - Label displayed before slider view.
        unitLabel - Unit label format.
        minValue - Minimum slider value.
        maxValue - Maximum slider value.
        defaultValue - Initial value set for the slider and the edit text.
        listener - Listener called when new values are picked using the slider.
    • Method Detail

      • unbindController

         void unbindController()

        Unbind from property inspector controller.

      • getPropertyInspectorMaxHeight

         int getPropertyInspectorMaxHeight()

        Returns maximum height that this view with all its detail views will occupy.


        Hint for the maximum inspector height or 0 if no max height is specified.

      • getSuggestedHeight

         int getSuggestedHeight()

        Returns best height of this view when shown in inspector. This is used to suggest initial height to inspector parent.


        Hint for the view height after being shown in inspector.

      • setValue

         void setValue(int value)

        Sets value to the slider view and edit text view.