added in version 22.1.0
belongs to Maven artifact com.android.support:support-core-ui:28.0.0-alpha1
Deprecated since version 27.1.0

Space

public class Space
extends View

java.lang.Object
   ↳ android.view.View
     ↳ android.support.v4.widget.Space


This class was deprecated in API level 27.1.0.
Use framework Space class instead.

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

Summary

Inherited constants

From class android.view.View

Inherited fields

From class android.view.View

Public constructors

Space(Context context, AttributeSet attrs, int defStyle)

This constructor was deprecated in API level 27.1.0. Use framework Space class instead.

Space(Context context, AttributeSet attrs)

This constructor was deprecated in API level 27.1.0. Use framework Space class instead.

Space(Context context)

This constructor was deprecated in API level 27.1.0. Use framework Space class instead.

Public methods

void draw(Canvas canvas)

This method was deprecated in API level 27.1.0. Use framework Space class instead.

Protected methods

void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

This method was deprecated in API level 27.1.0. Use framework Space class instead.

Inherited methods

From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public constructors

Space

added in version 22.1.0
Space (Context context, 
                AttributeSet attrs, 
                int defStyle)

This constructor was deprecated in API level 27.1.0.
Use framework Space class instead.

Parameters
context Context

attrs AttributeSet

defStyle int

Space

added in version 22.1.0
Space (Context context, 
                AttributeSet attrs)

This constructor was deprecated in API level 27.1.0.
Use framework Space class instead.

Parameters
context Context

attrs AttributeSet

Space

added in version 22.1.0
Space (Context context)

This constructor was deprecated in API level 27.1.0.
Use framework Space class instead.

Parameters
context Context

Public methods

draw

added in version 27.1.0
void draw (Canvas canvas)

This method was deprecated in API level 27.1.0.
Use framework Space class instead.

Draw nothing.

Parameters
canvas Canvas: an unused parameter.

Protected methods

onMeasure

added in version 27.1.0
void onMeasure (int widthMeasureSpec, 
                int heightMeasureSpec)

This method was deprecated in API level 27.1.0.
Use framework Space class instead.

Parameters
widthMeasureSpec int

heightMeasureSpec int