共用方式為


PopupWindow.EpicenterBounds Property

Definition

Returns bounds which are used as a center of the enter and exit transitions. -or- Sets the bounds used as the epicenter of the enter and exit transitions.

public virtual Android.Graphics.Rect? EpicenterBounds { [Android.Runtime.Register("getEpicenterBounds", "()Landroid/graphics/Rect;", "GetGetEpicenterBoundsHandler", ApiSince=29)] get; [Android.Runtime.Register("setEpicenterBounds", "(Landroid/graphics/Rect;)V", "GetSetEpicenterBounds_Landroid_graphics_Rect_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getEpicenterBounds", "()Landroid/graphics/Rect;", "GetGetEpicenterBoundsHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setEpicenterBounds", "(Landroid/graphics/Rect;)V", "GetSetEpicenterBounds_Landroid_graphics_Rect_Handler", ApiSince=29)>]
member this.EpicenterBounds : Android.Graphics.Rect with get, set

Property Value

bounds relative to anchor view, or null if not set

Attributes

Remarks

Property getter documentation:

Returns bounds which are used as a center of the enter and exit transitions.<p/>

Transitions use Rect, referred to as the epicenter, to orient the direction of travel. For popup windows, the anchor view bounds are used as the default epicenter.

See Transition#setEpicenterCallback(EpicenterCallback) for more information about how transition epicenters work.

Java documentation for android.widget.PopupWindow.getEpicenterBounds().

Property setter documentation:

Sets the bounds used as the epicenter of the enter and exit transitions.

Transitions use Rect, referred to as the epicenter, to orient the direction of travel. For popup windows, the anchor view bounds are used as the default epicenter.

See Transition#setEpicenterCallback(EpicenterCallback) for more information about how transition epicenters work.

Java documentation for android.widget.PopupWindow.setEpicenterBounds(android.graphics.Rect).

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