ListPopupWindow

Class of android.widget · ListPopupWindow.java · Android's reference

public class ListPopupWindow

A list of the items of an adapter in a popup window next to an anchor view.

Page 1 2

Fields

public static final int POSITION_PROMPT_ABOVE = 0 source
public static final int POSITION_PROMPT_BELOW = 1 source
public static final int MATCH_PARENT = -1 source
public static final int WRAP_CONTENT = -2 source
public static final int INPUT_METHOD_FROM_FOCUSABLE = PopupWindow.INPUT_METHOD_FROM_FOCUSABLE source
public static final int INPUT_METHOD_NEEDED = PopupWindow.INPUT_METHOD_NEEDED source
public static final int INPUT_METHOD_NOT_NEEDED = PopupWindow.INPUT_METHOD_NOT_NEEDED source

Constructors

public ListPopupWindow(Context context) source
public ListPopupWindow(Context context, AttributeSet attrs) source
public ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr) source
public ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Methods

public void setAdapter(ListAdapter adapter) source
public void setPromptPosition(int position) source
public int getPromptPosition() source
public void setPromptView(View prompt) source
public void setModal(boolean modal) source
public boolean isModal() source
public void setSoftInputMode(int mode) source
public int getSoftInputMode() source
public void setListSelector(Drawable selector) empty body source
public Drawable getBackground() source
public void setBackgroundDrawable(Drawable d) source
public void setAnimationStyle(int animationStyle) source
public int getAnimationStyle() source
public View getAnchorView() source
public void setAnchorView(View anchor) source
public int getHorizontalOffset() source
public void setHorizontalOffset(int offset) source
public int getVerticalOffset() source
public void setVerticalOffset(int offset) source
public void setDropDownGravity(int gravity) source
public int getWidth() source
public void setWidth(int width) source
public void setContentWidth(int width) source
public int getHeight() source
public void setHeight(int height) source
public void setOnItemClickListener(AdapterView.OnItemClickListener l) source
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener l) source
public void show() source

The list below its anchor, as AOSP's sizes it: as wide as the anchor for WRAP_CONTENT, and as high as its items for WRAP_CONTENT, no higher than the space beside the anchor

public void dismiss() source

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.