語言

Toolbar.SetContentInsetsAbsolute(Int32, Int32) 方法

定義

設定這個工具列的內容插入點。

[Android.Runtime.Register("setContentInsetsAbsolute", "(II)V", "GetSetContentInsetsAbsolute_IIHandler")]
public virtual void SetContentInsetsAbsolute(int contentInsetLeft, int contentInsetRight);
[<Android.Runtime.Register("setContentInsetsAbsolute", "(II)V", "GetSetContentInsetsAbsolute_IIHandler")>]
abstract member SetContentInsetsAbsolute : int * int -> unit
override this.SetContentInsetsAbsolute : int * int -> unit

參數

contentInsetLeft
Int32

工具列左側邊緣的內容嵌入

contentInsetRight
Int32

工具列右側邊緣的內容嵌入

屬性

備註

設定這個工具列的內容插入點。

內容內嵌會影響工具列中除導覽按鈕和選單外的有效區域。 嵌入設定定義這些元件的最小邊際,並可用來有效將工具列內容沿已知格線對齊。

的 android.widget.Toolbar.setContentInsetsAbsolute(int, int)Java 檔。

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

適用於

另請參閱