LinearLayout.SetGravity(GravityFlags) 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.
Describes how the child views are positioned.
[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
See android.view.Gravity
- Attributes
Remarks
Describes how the child views are positioned. Defaults to GRAVITY_TOP. If this layout has a VERTICAL orientation, this controls where all the child views are placed if there is extra vertical space. If this layout has a HORIZONTAL orientation, this controls the alignment of the children.
Java documentation for android.widget.LinearLayout.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.