View.OffsetTopAndBottom(Int32) 方法

定义

将此视图的垂直位置偏移指定的像素数。

[Android.Runtime.Register("offsetTopAndBottom", "(I)V", "GetOffsetTopAndBottom_IHandler")]
public virtual void OffsetTopAndBottom (int offset);
[<Android.Runtime.Register("offsetTopAndBottom", "(I)V", "GetOffsetTopAndBottom_IHandler")>]
abstract member OffsetTopAndBottom : int -> unit
override this.OffsetTopAndBottom : int -> unit

参数

offset
Int32

要偏移视图的像素数

属性

注解

将此视图的垂直位置偏移指定的像素数。

android.view.View.offsetTopAndBottom(int)Java 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

适用于