MeasurementValueInspectorView

class MeasurementValueInspectorView(context: Context, label: String, measurementValue: String, annotation: Annotation) : FrameLayout, PropertyInspectorView

Inspector component for displaying the measurement text value.

Parameters

context

The context to use.

label

Label shown next to the measurement value.

measurementValue

Measurement value set when showing text.

annotation

Annotation whose measurement value is displayed.

Constructors

Link copied to clipboard
constructor(context: Context, label: String, measurementValue: String, annotation: Annotation)

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 onHidden()

Called when this inspector view was hidden.

Link copied to clipboard
open override fun onShown()

Called when this inspector view became visible.

Link copied to clipboard
fun setMeasurementValue(measurementValue: String)

Updates the displayed measurement value text.

Link copied to clipboard
open override fun unbindController()

Unbind from property inspector controller.