/// <summary>Create a new, empty popup window capable of displaying items from a ListAdapter. /// </summary> /// <remarks> /// Create a new, empty popup window capable of displaying items from a ListAdapter. /// Backgrounds should be set using /// <see cref="setBackgroundDrawable(android.graphics.drawable.Drawable)">setBackgroundDrawable(android.graphics.drawable.Drawable) /// </see> /// . /// </remarks> /// <param name="context">Context used for contained views.</param> /// <param name="attrs">Attributes from inflating parent views used to style the popup. /// </param> /// <param name="defStyleAttr">Default style attribute to use for popup content.</param> public ListPopupWindow(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr) : this(context, attrs, defStyleAttr, 0) { mResizePopupRunnable = new android.widget.ListPopupWindow.ResizePopupRunnable(this ); mTouchInterceptor = new android.widget.ListPopupWindow.PopupTouchInterceptor(this ); mScrollListener = new android.widget.ListPopupWindow.PopupScrollListener(this); mHideSelector = new android.widget.ListPopupWindow.ListSelectorHider(this); }
/// <summary>Create a new, empty popup window capable of displaying items from a ListAdapter. /// </summary> /// <remarks> /// Create a new, empty popup window capable of displaying items from a ListAdapter. /// Backgrounds should be set using /// <see cref="setBackgroundDrawable(android.graphics.drawable.Drawable)">setBackgroundDrawable(android.graphics.drawable.Drawable) /// </see> /// . /// </remarks> /// <param name="context">Context used for contained views.</param> /// <param name="attrs">Attributes from inflating parent views used to style the popup. /// </param> /// <param name="defStyleAttr">Style attribute to read for default styling of popup content. /// </param> /// <param name="defStyleRes">Style resource ID to use for default styling of popup content. /// </param> public ListPopupWindow(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes) { mResizePopupRunnable = new android.widget.ListPopupWindow.ResizePopupRunnable(this ); mTouchInterceptor = new android.widget.ListPopupWindow.PopupTouchInterceptor(this ); mScrollListener = new android.widget.ListPopupWindow.PopupScrollListener(this); mHideSelector = new android.widget.ListPopupWindow.ListSelectorHider(this); mContext = context; mPopup = new android.widget.PopupWindow(context, attrs, defStyleAttr, defStyleRes ); mPopup.setInputMethodMode(android.widget.PopupWindow.INPUT_METHOD_NEEDED); }
/// <summary>Create a new, empty popup window capable of displaying items from a ListAdapter. /// </summary> /// <remarks> /// Create a new, empty popup window capable of displaying items from a ListAdapter. /// Backgrounds should be set using /// <see cref="setBackgroundDrawable(android.graphics.drawable.Drawable)">setBackgroundDrawable(android.graphics.drawable.Drawable) /// </see> /// . /// </remarks> /// <param name="context">Context used for contained views.</param> public ListPopupWindow(android.content.Context context) : this(context, null, [email protected] .attr.listPopupWindowStyle, 0) { mResizePopupRunnable = new android.widget.ListPopupWindow.ResizePopupRunnable(this ); mTouchInterceptor = new android.widget.ListPopupWindow.PopupTouchInterceptor(this ); mScrollListener = new android.widget.ListPopupWindow.PopupScrollListener(this); mHideSelector = new android.widget.ListPopupWindow.ListSelectorHider(this); }