Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Space

open class Space : View
kotlin.Any
   ↳ android.view.View
   ↳ androidx.legacy.widget.Space

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

Summary

Public constructors
<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?, defStyle: Int)

Use framework android.widget.Space class instead.

<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?)

Use framework android.widget.Space class instead.

<init>(@NonNull context: Context)

Use framework android.widget.Space class instead.

Public methods
open Unit
draw(canvas: Canvas!)

Draw nothing.

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

Public constructors

<init>

Space(@NonNull context: Context, @Nullable attrs: AttributeSet?, defStyle: Int)

Deprecated: Use framework android.widget.Space class instead.

<init>

Space(@NonNull context: Context, @Nullable attrs: AttributeSet?)

Deprecated: Use framework android.widget.Space class instead.

<init>

Space(@NonNull context: Context)

Deprecated: Use framework android.widget.Space class instead.

Public methods

draw

open fun draw(canvas: Canvas!): Unit

Draw nothing.

Parameters
canvas Canvas!: an unused parameter.

Protected methods

onMeasure

protected open fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit