语言

Toolbar.SetContentInsetsRelative(Int32, Int32) 方法

定义

设置此工具栏相对于布局方向的内容集。

[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

工具栏结束边缘的内容内嵌

属性

注解

设置此工具栏相对于布局方向的内容集。

内容内嵌会影响工具栏内容的有效区域,而不是导航按钮和菜单。 Insets 定义了这些组件的最小边距,可用于有效地对齐工具栏内容与已知网格线。

Java文档android.widget.Toolbar.setContentInsetsRelative(int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅