RelativeLayout.LayoutParams.RemoveRule(LayoutRules) Method

Definition

Removes a layout rule to be interpreted by the RelativeLayout.

[Android.Runtime.Register("removeRule", "(I)V", "GetRemoveRule_IHandler")]
public virtual void RemoveRule (Android.Widget.LayoutRules verb);
[<Android.Runtime.Register("removeRule", "(I)V", "GetRemoveRule_IHandler")>]
abstract member RemoveRule : Android.Widget.LayoutRules -> unit
override this.RemoveRule : Android.Widget.LayoutRules -> unit

Parameters

verb
LayoutRules

One of the verbs defined by android.widget.RelativeLayout RelativeLayout, such as ALIGN_WITH_PARENT_LEFT.

Attributes

Remarks

Removes a layout rule to be interpreted by the RelativeLayout.

If the rule is relative to the layout direction (ex. #START_OF, #ALIGN_PARENT_START, etc.) then the layout direction must be resolved using #resolveLayoutDirection(int) before before calling #getRule(int) with an absolute rule (ex. #LEFT_OF.

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

  • AddRule(LayoutRules)
  • <xref:Android.Widget.RelativeLayout.LayoutParams.AddRule(Android.Widget.LayoutRules%2c+System.Int32)>