語言

View.SetLeftTopRightBottom(Int32, Int32, Int32, Int32) 方法

定義

為此視角指定大小與位置。

[Android.Runtime.Register("setLeftTopRightBottom", "(IIII)V", "", ApiSince=29)]
public void SetLeftTopRightBottom(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setLeftTopRightBottom", "(IIII)V", "", ApiSince=29)>]
member this.SetLeftTopRightBottom : int * int * int * int -> unit

參數

left
Int32

左位置,相對於母節點

top
Int32

相對於母本的頂端位置

right
Int32

相對於母體的右位置

bottom
Int32

相對於母本的底部位置

屬性

備註

為此視角指定大小與位置。

此方法僅用於動畫,因為它對視角的這個位置和大小僅是暫時性的,且可隨時由版面調整回來。

的 android.view.View.setLeftTopRightBottom(int, int, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於