Toolbar.SetContentInsetsRelative(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定此工具列的內容插入相對於版面方向。
[Android.Runtime.Register("setContentInsetsRelative", "(II)V", "GetSetContentInsetsRelative_IIHandler")]
public virtual void SetContentInsetsRelative(int contentInsetStart, int contentInsetEnd);
[<Android.Runtime.Register("setContentInsetsRelative", "(II)V", "GetSetContentInsetsRelative_IIHandler")>]
abstract member SetContentInsetsRelative : int * int -> unit
override this.SetContentInsetsRelative : int * int -> unit
參數
- contentInsetStart
- Int32
工具列起始邊緣的內容嵌入
- contentInsetEnd
- Int32
工具列末端內容插入
- 屬性
備註
設定此工具列的內容插入相對於版面方向。
內容內嵌會影響工具列中除導覽按鈕和選單外的有效區域。 嵌入設定定義這些元件的最小邊際,並可用來有效將工具列內容沿已知格線對齊。
的 android.widget.Toolbar.setContentInsetsRelative(int, int)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
另請參閱
- <xref:Android.Widget.Toolbar.SetContentInsetsAbsolute(System.Int32%2c+System.Int32)>
- ContentInsetStart
- ContentInsetEnd
- ContentInsetLeft
- ContentInsetRight