Android Guides | Samples

Android.Graphics.Drawables.BitmapDrawable.Gravity Property

Get the gravity used to position/stretch the bitmap within its bounds.

Syntax

[get: Android.Runtime.Register("getGravity", "()I", "GetGetGravityHandler")]
[set: Android.Runtime.Register("setGravity", "(I)V", "GetSetGravity_IHandler")]
public virtual GravityFlags Gravity { get; set; }

Remarks

Get method documentation[Android Documentation]
Get the gravity used to position/stretch the bitmap within its bounds. See android.view.Gravity

Set method documentation[Android Documentation]
Set the gravity used to position/stretch the bitmap within its bounds. See android.view.Gravity

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1