Android7.0中文文档 -- Space

来源:互联网 发布:追星必备软件 编辑:程序博客网 时间:2024/05/29 17:25

完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/Space.html

Space

public final class Space
extends View

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

Space is a lightweight View subclass that may be used to create gaps between components in general purpose layouts.
Space是一个轻量级的视图子类,它可以用来在通用布局中创建组件之间的分隔间隙。

摘要


继承XML属性

From class android.view.View

继承常量

From class android.view.View

继承字段

From class android.view.View

Public构造方法

Space(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Space(Context context, AttributeSet attrs, int defStyleAttr)

Space(Context context, AttributeSet attrs)

Space(Context context)

Public方法

voiddraw(Canvas canvas)

Draw nothing.
不会绘制任何东西。

保护方法

voidonMeasure(int widthMeasureSpec, int heightMeasureSpec)

Measure the view and its content to determine the measured width and the measured height.
测量视图,它的内容决定测量得到宽度和高度。

继承方法

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构造方法

原创粉丝点击