belongs to Maven artifact androidx.legacy:legacy-support-core-ui:1.0.0-alpha1

Space

public class Space
extends View

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


This class is deprecated.
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 is deprecated. Use framework Space class instead.

Space(Context context, AttributeSet attrs)

This constructor is deprecated. Use framework Space class instead.

Space(Context context)

This constructor is deprecated. Use framework Space class instead.

Public methods

void draw(Canvas canvas)

This method is deprecated. Use framework Space class instead.

Protected methods

void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

This method is deprecated. Use framework Space class instead.

Inherited methods

Public constructors

Space

Space (Context context, 
                AttributeSet attrs, 
                int defStyle)

This constructor is deprecated.
Use framework Space class instead.

Parameters
context Context

attrs AttributeSet

defStyle int

Space

Space (Context context, 
                AttributeSet attrs)

This constructor is deprecated.
Use framework Space class instead.

Parameters
context Context

attrs AttributeSet

Space

Space (Context context)

This constructor is deprecated.
Use framework Space class instead.

Parameters
context Context

Public methods

draw

void draw (Canvas canvas)

This method is deprecated.
Use framework Space class instead.

Draw nothing.

Parameters
canvas Canvas: an unused parameter.

Protected methods

onMeasure

void onMeasure (int widthMeasureSpec, 
                int heightMeasureSpec)

This method is deprecated.
Use framework Space class instead.

Parameters
widthMeasureSpec int

heightMeasureSpec int