added in version 1.0.0
belongs to Maven artifact androidx.legacy:legacy-support-core-ui:1.0.0-beta01
Deprecated since version 1.0.0

Space

public class Space
extends View

java.lang.Object
   ↳ android.view.View
     ↳ androidx.legacy.widget.Space


This class was deprecated in API level 1.0.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

Inherited fields

Public constructors

Space(Context context, AttributeSet attrs, int defStyle)

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

Space(Context context, AttributeSet attrs)

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

Space(Context context)

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

Public methods

void draw(Canvas canvas)

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

Protected methods

void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

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

Inherited methods

Public constructors

Space

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

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

Parameters
context Context

attrs AttributeSet

defStyle int

Space

added in version 1.0.0
public Space (Context context, 
                AttributeSet attrs)

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

Parameters
context Context

attrs AttributeSet

Space

added in version 1.0.0
public Space (Context context)

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

Parameters
context Context

Public methods

draw

added in version 1.0.0
public void draw (Canvas canvas)

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

Draw nothing.

Parameters
canvas Canvas: an unused parameter.

Protected methods

onMeasure

added in version 1.0.0
protected void onMeasure (int widthMeasureSpec, 
                int heightMeasureSpec)

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

Parameters
widthMeasureSpec int

heightMeasureSpec int