Stay organized with collections Save and categorize content based on your preferences.
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