Udostępnij za pośrednictwem


RelativeLayout.LayoutParams.GetRule(LayoutRules) Method

Definition

Returns the layout rule associated with a specific verb.

[Android.Runtime.Register("getRule", "(I)I", "GetGetRule_IHandler", ApiSince=23)]
public virtual int GetRule (Android.Widget.LayoutRules verb);
[<Android.Runtime.Register("getRule", "(I)I", "GetGetRule_IHandler", ApiSince=23)>]
abstract member GetRule : Android.Widget.LayoutRules -> int
override this.GetRule : Android.Widget.LayoutRules -> int

Parameters

verb
LayoutRules

one of the verbs defined by RelativeLayout, such as ALIGN_WITH_PARENT_LEFT

Returns

the id of another view to use as an anchor, a boolean value (represented as RelativeLayout#TRUE for true or 0 for false), or -1 for verbs that don't refer to another sibling (for example, ALIGN_WITH_PARENT_BOTTOM)

Attributes

Remarks

Returns the layout rule associated with a specific verb.

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