ContentEditingLineSpacingPickerView

class ContentEditingLineSpacingPickerView(context: Context, @Size(min = 1) availablSizes: List<Float>, defaultValue: Float?, unsupportedCurrentValue: Float?, listener: ContentEditingLineSpacingPickerView.LineSpacingPickerListener) : RecyclerView, PropertyInspectorView

Inspector view for selecting line spacing values during content editing. Displays a list of available line spacing options for the user to choose from.

Parameters

context

The context to use.

availablSizes

Available line spacing values to display.

defaultValue

Default line spacing value to be pre-selected.

unsupportedCurrentValue

The current line spacing value if it's not in the available sizes list.

listener

Listener to be notified when a line spacing value is selected.

Constructors

Link copied to clipboard
constructor(context: Context, @Size(min = 1) availablSizes: List<Float>, defaultValue: Float?, unsupportedCurrentValue: Float?, listener: ContentEditingLineSpacingPickerView.LineSpacingPickerListener)

Types

Link copied to clipboard

Listener interface for receiving notifications when a line spacing value is selected.

Properties

Link copied to clipboard
open override val propertyInspectorMaxHeight: Int
Link copied to clipboard
open override val propertyInspectorMinHeight: Int
Link copied to clipboard
open override val suggestedHeight: Int
Link copied to clipboard
open override val view: View

Functions

Link copied to clipboard
open override fun bindController(controller: PropertyInspectorController)

Bind to property inspector controller.

Link copied to clipboard
open override fun getPropertyInspectorMaxHeight(): Int

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

Link copied to clipboard
open override fun getPropertyInspectorMinHeight(): Int

Height of the parent PropertyInspector that this view would like it to have.

Link copied to clipboard
open override fun getSuggestedHeight(): Int

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

Link copied to clipboard
open override fun getView(): View

Casts the inspector view to the View class and returns it.

Link copied to clipboard
open override fun unbindController()

Unbind from property inspector controller.