Udostępnij za pośrednictwem


Toolbar.SetContentInsetsAbsolute(Int32, Int32) Method

Definition

Sets the content insets for this toolbar.

[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

Parameters

contentInsetLeft
Int32

Content inset for the toolbar's left edge

contentInsetRight
Int32

Content inset for the toolbar's right edge

Attributes

Remarks

Sets the content insets for this toolbar.

The content inset affects the valid area for Toolbar content other than the navigation button and menu. Insets define the minimum margin for these components and can be used to effectively align Toolbar content along well-known gridlines.

Java documentation for android.widget.Toolbar.setContentInsetsAbsolute(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also