RelativeLayout.SetIgnoreGravity(Int32) Method

Definition

Defines which View is ignored when the gravity is applied.

[Android.Runtime.Register("setIgnoreGravity", "(I)V", "GetSetIgnoreGravity_IHandler")]
public virtual void SetIgnoreGravity (int viewId);
[<Android.Runtime.Register("setIgnoreGravity", "(I)V", "GetSetIgnoreGravity_IHandler")>]
abstract member SetIgnoreGravity : int -> unit
override this.SetIgnoreGravity : int -> unit

Parameters

viewId
Int32

The id of the View to be ignored by gravity, or 0 if no View should be ignored.

Attributes

Remarks

Defines which View is ignored when the gravity is applied. This setting has no effect if the gravity is Gravity.START | Gravity.TOP.

Java documentation for android.widget.RelativeLayout.setIgnoreGravity(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