Toolbar.SetContentInsetsAbsolute(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- <xref:Android.Widget.Toolbar.SetContentInsetsAbsolute(System.Int32%2c+System.Int32)>
- ContentInsetStart
- ContentInsetEnd
- ContentInsetLeft
- ContentInsetRight