ListPopupWindow ListPopupWindow Class

Definition

A ListPopupWindow anchors itself to a host view and displays a list of choices.

[Android.Runtime.Register("android/widget/ListPopupWindow", ApiSince=11, DoNotGenerateAcw=true)]
public class ListPopupWindow : Java.Lang.Object
type ListPopupWindow = class
    inherit Object
Inheritance
ListPopupWindowListPopupWindow
Attributes

Remarks

Android platform documentation

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.

Constructors

ListPopupWindow(Context) ListPopupWindow(Context)

Create a new, empty popup window capable of displaying items from a ListAdapter.

ListPopupWindow(Context, IAttributeSet) ListPopupWindow(Context, IAttributeSet)

Create a new, empty popup window capable of displaying items from a ListAdapter.

ListPopupWindow(Context, IAttributeSet, Int32) ListPopupWindow(Context, IAttributeSet, Int32)

Create a new, empty popup window capable of displaying items from a ListAdapter.

ListPopupWindow(Context, IAttributeSet, Int32, Int32) ListPopupWindow(Context, IAttributeSet, Int32, Int32)

Create a new, empty popup window capable of displaying items from a ListAdapter.

ListPopupWindow(IntPtr, JniHandleOwnership) ListPopupWindow(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

MatchParent MatchParent

F:Android.Views.ViewGroup+LayoutParams.MatchParent

PositionPromptAbove PositionPromptAbove

The provided prompt view should appear above list content.

PositionPromptBelow PositionPromptBelow

The provided prompt view should appear below list content.

WrapContent WrapContent

F:Android.Views.ViewGroup+LayoutParams.WrapContent

Properties

AnchorView AnchorView

Returns the view that will be used to anchor this popup.

AnimationStyle AnimationStyle

Returns the animation style that will be used when the popup window is shown or dismissed.

Background Background
Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Height Height
HorizontalOffset HorizontalOffset
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
InputMethodMode InputMethodMode

Return the current value in InputMethodMode.

IsInputMethodNotNeeded IsInputMethodNotNeeded
IsShowing IsShowing
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
ListView ListView
Modal Modal

Returns whether the popup window will be modal when shown.

PeerReference PeerReference Inherited from Object
PromptPosition PromptPosition
SelectedItem SelectedItem
SelectedItemId SelectedItemId
SelectedItemPosition SelectedItemPosition
SelectedView SelectedView
SoftInputMode SoftInputMode

Returns the current value in SoftInputMode.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

VerticalOffset VerticalOffset
Width Width

Methods

ClearListSelection() ClearListSelection()

Clear any current list selection.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CreateDragToOpenListener(View) CreateDragToOpenListener(View)

View OnTouchListener

Dismiss() Dismiss()

Dismiss the popup window.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
OnKeyDown(Keycode, KeyEvent) OnKeyDown(Keycode, KeyEvent)

Filter key down events.

OnKeyPreIme(Keycode, KeyEvent) OnKeyPreIme(Keycode, KeyEvent)

Filter pre-IME key events.

OnKeyUp(Keycode, KeyEvent) OnKeyUp(Keycode, KeyEvent)

Filter key down events.

PerformItemClick(Int32) PerformItemClick(Int32)

Perform an item click operation on the specified list adapter position.

PostShow() PostShow()

Post a Show() call to the UI thread.

SetAdapter(IListAdapter) SetAdapter(IListAdapter)

Sets the adapter that provides the data and the views to represent the data in this popup window.

SetBackgroundDrawable(Drawable) SetBackgroundDrawable(Drawable)

Sets a drawable to be the background for the popup window.

SetContentWidth(Int32) SetContentWidth(Int32)

Sets the width of the popup window by the size of its content.

SetDropDownGravity(GravityFlags) SetDropDownGravity(GravityFlags)

Set the gravity of the dropdown list.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetListSelector(Drawable) SetListSelector(Drawable)

Sets a drawable to use as the list item selector.

SetOnDismissListener(PopupWindow+IOnDismissListener) SetOnDismissListener(PopupWindow+IOnDismissListener)

Set a listener to receive a callback when the popup is dismissed.

SetOnItemClickListener(AdapterView+IOnItemClickListener) SetOnItemClickListener(AdapterView+IOnItemClickListener)

Sets a listener to receive events when a list item is clicked.

SetOnItemSelectedListener(AdapterView+IOnItemSelectedListener) SetOnItemSelectedListener(AdapterView+IOnItemSelectedListener)

Sets a listener to receive events when a list item is selected.

SetPromptView(View) SetPromptView(View)

Set a view to act as a user prompt for this popup window.

SetSelection(Int32) SetSelection(Int32)

Set the selected position of the list.

SetWindowLayoutType(WindowManagerTypes) SetWindowLayoutType(WindowManagerTypes)
Show() Show()

Show the popup list.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Events

DismissEvent DismissEvent
ItemClick ItemClick
ItemSelected ItemSelected
NothingSelected NothingSelected

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to