次の方法で共有


GridView.SetGravity(GravityFlags) Method

Definition

Set the gravity for this grid.

[Android.Runtime.Register("setGravity", "(I)V", "GetSetGravity_IHandler")]
public virtual void SetGravity (Android.Views.GravityFlags gravity);
[<Android.Runtime.Register("setGravity", "(I)V", "GetSetGravity_IHandler")>]
abstract member SetGravity : Android.Views.GravityFlags -> unit
override this.SetGravity : Android.Views.GravityFlags -> unit

Parameters

gravity
GravityFlags

the gravity to apply to this grid's children

Attributes

Remarks

Set the gravity for this grid. Gravity describes how the child views are horizontally aligned. Defaults to Gravity.LEFT

Java documentation for android.widget.GridView.setGravity(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