Class TextInputInspectorView

  • 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 TextInputInspectorView
    extends FrameLayout implements PropertyInspectorView
                        

    Inspector component for entering some text.

    • Constructor Detail

      • TextInputInspectorView

        TextInputInspectorView(Context context, String label, String defaultValue, TextInputInspectorView.TextInputListener listener)
        Construct text picker.
        Parameters:
        context - The context to use.
        label - The label to display next to the selected text.
        defaultValue - The default text that is entered.
        listener - Listener to notify of text changes.
    • 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.

        Returns:

        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.

        Returns:

        Hint for the view height after being shown in inspector.

      • isViewStateRestorationEnabled

         boolean isViewStateRestorationEnabled()

        Flag to determine whether to save the state by calling on the view the saveHierarchyState to save its state and restoreHierarchyState to restore it. Defaults to false. When enabled, the view must implement View#onSaveInstanceState and View#onRestoreInstanceState, and a unique id must be set by setId.