次の方法で共有


Toolbar.SetContentInsetsRelative(Int32, Int32) Method

Definition

Sets the content insets for this toolbar relative to layout direction.

[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

Parameters

contentInsetStart
Int32

Content inset for the toolbar starting edge

contentInsetEnd
Int32

Content inset for the toolbar ending edge

Attributes

Remarks

Sets the content insets for this toolbar relative to layout direction.

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.setContentInsetsRelative(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