다음을 통해 공유


PopupWindow.Update Method

Definition

Overloads

Update()

Updates the state of the popup window, if it is currently being displayed, from the currently set state.

Update(Int32, Int32)

Updates the dimension of the popup window.

Update(View, Int32, Int32)

Updates the position and the dimension of the popup window.

Update(Int32, Int32, Int32, Int32)

Updates the position and the dimension of the popup window.

Update(View, Int32, Int32, Int32, Int32)

Updates the position and the dimension of the popup window.

Update(Int32, Int32, Int32, Int32, Boolean)

Updates the position and the dimension of the popup window.

Update()

Updates the state of the popup window, if it is currently being displayed, from the currently set state.

[Android.Runtime.Register("update", "()V", "GetUpdateHandler")]
public virtual void Update ();
[<Android.Runtime.Register("update", "()V", "GetUpdateHandler")>]
abstract member Update : unit -> unit
override this.Update : unit -> unit
Attributes

Remarks

Updates the state of the popup window, if it is currently being displayed, from the currently set state.

This includes: <ul> <li>#setClippingEnabled(boolean)</li> <li>#setFocusable(boolean)</li> <li>#setIgnoreCheekPress()</li> <li>#setInputMethodMode(int)</li> <li>#setTouchable(boolean)</li> <li>#setAnimationStyle(int)</li> <li>#setTouchModal(boolean) (boolean)}</li> <li>#setIsClippedToScreen(boolean)</li> </ul>

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

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

Update(Int32, Int32)

Updates the dimension of the popup window.

[Android.Runtime.Register("update", "(II)V", "GetUpdate_IIHandler")]
public virtual void Update (int width, int height);
[<Android.Runtime.Register("update", "(II)V", "GetUpdate_IIHandler")>]
abstract member Update : int * int -> unit
override this.Update : int * int -> unit

Parameters

width
Int32

the new width in pixels, must be >= 0 or -1 to ignore

height
Int32

the new height in pixels, must be >= 0 or -1 to ignore

Attributes

Remarks

Updates the dimension of the popup window.

Calling this function also updates the window with the current popup state as described for #update().

Java documentation for android.widget.PopupWindow.update(int, 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

Update(View, Int32, Int32)

Updates the position and the dimension of the popup window.

[Android.Runtime.Register("update", "(Landroid/view/View;II)V", "GetUpdate_Landroid_view_View_IIHandler")]
public virtual void Update (Android.Views.View? anchor, int width, int height);
[<Android.Runtime.Register("update", "(Landroid/view/View;II)V", "GetUpdate_Landroid_view_View_IIHandler")>]
abstract member Update : Android.Views.View * int * int -> unit
override this.Update : Android.Views.View * int * int -> unit

Parameters

anchor
View

the popup's anchor view

width
Int32

the new width in pixels, must be >= 0 or -1 to ignore

height
Int32

the new height in pixels, must be >= 0 or -1 to ignore

Attributes

Remarks

Updates the position and the dimension of the popup window.

Calling this function also updates the window with the current popup state as described for #update().

Java documentation for android.widget.PopupWindow.update(android.view.View, int, 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

Update(Int32, Int32, Int32, Int32)

Updates the position and the dimension of the popup window.

[Android.Runtime.Register("update", "(IIII)V", "GetUpdate_IIIIHandler")]
public virtual void Update (int x, int y, int width, int height);
[<Android.Runtime.Register("update", "(IIII)V", "GetUpdate_IIIIHandler")>]
abstract member Update : int * int * int * int -> unit
override this.Update : int * int * int * int -> unit

Parameters

x
Int32

the new x location

y
Int32

the new y location

width
Int32

the new width in pixels, must be >= 0 or -1 to ignore

height
Int32

the new height in pixels, must be >= 0 or -1 to ignore

Attributes

Remarks

Updates the position and the dimension of the popup window.

Width and height can be set to -1 to update location only. Calling this function also updates the window with the current popup state as described for #update().

Java documentation for android.widget.PopupWindow.update(int, int, int, 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

Update(View, Int32, Int32, Int32, Int32)

Updates the position and the dimension of the popup window.

[Android.Runtime.Register("update", "(Landroid/view/View;IIII)V", "GetUpdate_Landroid_view_View_IIIIHandler")]
public virtual void Update (Android.Views.View? anchor, int xoff, int yoff, int width, int height);
[<Android.Runtime.Register("update", "(Landroid/view/View;IIII)V", "GetUpdate_Landroid_view_View_IIIIHandler")>]
abstract member Update : Android.Views.View * int * int * int * int -> unit
override this.Update : Android.Views.View * int * int * int * int -> unit

Parameters

anchor
View

the popup's anchor view

xoff
Int32

x offset from the view's left edge

yoff
Int32

y offset from the view's bottom edge

width
Int32

the new width in pixels, must be >= 0 or -1 to ignore

height
Int32

the new height in pixels, must be >= 0 or -1 to ignore

Attributes

Remarks

Updates the position and the dimension of the popup window.

Width and height can be set to -1 to update location only. Calling this function also updates the window with the current popup state as described for #update().

If the view later scrolls to move anchor to a different location, the popup will be moved correspondingly.

Java documentation for android.widget.PopupWindow.update(android.view.View, int, int, int, 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

Update(Int32, Int32, Int32, Int32, Boolean)

Updates the position and the dimension of the popup window.

[Android.Runtime.Register("update", "(IIIIZ)V", "GetUpdate_IIIIZHandler")]
public virtual void Update (int x, int y, int width, int height, bool force);
[<Android.Runtime.Register("update", "(IIIIZ)V", "GetUpdate_IIIIZHandler")>]
abstract member Update : int * int * int * int * bool -> unit
override this.Update : int * int * int * int * bool -> unit

Parameters

x
Int32

the new x location

y
Int32

the new y location

width
Int32

the new width in pixels, must be >= 0 or -1 to ignore

height
Int32

the new height in pixels, must be >= 0 or -1 to ignore

force
Boolean

true to reposition the window even if the specified position already seems to correspond to the LayoutParams, false to only reposition if needed

Attributes

Remarks

Updates the position and the dimension of the popup window.

Width and height can be set to -1 to update location only. Calling this function also updates the window with the current popup state as described for #update().

Java documentation for android.widget.PopupWindow.update(int, int, int, int, boolean).

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