Added in API level 14

Space


class Space : View
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.Space

Space is a lightweight View subclass that may be used to create gaps between components in general purpose layouts.

Summary

Inherited XML attributes
Inherited constants
Public constructors
Space(context: Context!)

Space(context: Context!, attrs: AttributeSet!)

Space(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Space(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
Unit
draw(canvas: Canvas)

Draw nothing.

Protected methods
Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Inherited functions
Inherited properties

Public constructors

Space

Added in API level 14
Space(context: Context!)

Space

Added in API level 14
Space(
    context: Context!,
    attrs: AttributeSet!)

Space

Added in API level 14
Space(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int)

Space

Added in API level 21
Space(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int,
    defStyleRes: Int)

Public methods

draw

Added in API level 14
fun draw(canvas: Canvas): Unit

Draw nothing.

Parameters
canvas Canvas: an unused parameter.

Protected methods

onMeasure

Added in API level 14
protected fun onMeasure(
    widthMeasureSpec: Int,
    heightMeasureSpec: Int
): Unit
Parameters
widthMeasureSpec Int: horizontal space requirements as imposed by the parent. The requirements are encoded with android.view.View.MeasureSpec.
heightMeasureSpec Int: vertical space requirements as imposed by the parent. The requirements are encoded with android.view.View.MeasureSpec.