android.widget
Class ListPopupWindow
java.lang.Object
android.widget.ListPopupWindow
public class ListPopupWindow
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POSITION_PROMPT_ABOVE
public static final int POSITION_PROMPT_ABOVE
- See Also:
- Constant Field Values
POSITION_PROMPT_BELOW
public static final int POSITION_PROMPT_BELOW
- See Also:
- Constant Field Values
MATCH_PARENT
public static final int MATCH_PARENT
- See Also:
- Constant Field Values
WRAP_CONTENT
public static final int WRAP_CONTENT
- See Also:
- Constant Field Values
INPUT_METHOD_FROM_FOCUSABLE
public static final int INPUT_METHOD_FROM_FOCUSABLE
- See Also:
- Constant Field Values
INPUT_METHOD_NEEDED
public static final int INPUT_METHOD_NEEDED
- See Also:
- Constant Field Values
INPUT_METHOD_NOT_NEEDED
public static final int INPUT_METHOD_NOT_NEEDED
- See Also:
- Constant Field Values
ListPopupWindow
public ListPopupWindow(Context context)
ListPopupWindow
public ListPopupWindow(Context context,
AttributeSet attrs)
ListPopupWindow
public ListPopupWindow(Context context,
AttributeSet attrs,
int defStyleAttr)
ListPopupWindow
public ListPopupWindow(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
setAdapter
public void setAdapter(ListAdapter adapter)
setPromptPosition
public void setPromptPosition(int position)
getPromptPosition
public int getPromptPosition()
setModal
public void setModal(boolean modal)
isModal
public boolean isModal()
setSoftInputMode
public void setSoftInputMode(int mode)
getSoftInputMode
public int getSoftInputMode()
setListSelector
public void setListSelector(Drawable selector)
getBackground
public Drawable getBackground()
setBackgroundDrawable
public void setBackgroundDrawable(Drawable d)
setAnimationStyle
public void setAnimationStyle(int animationStyle)
getAnimationStyle
public int getAnimationStyle()
getAnchorView
public View getAnchorView()
setAnchorView
public void setAnchorView(View anchor)
getHorizontalOffset
public int getHorizontalOffset()
setHorizontalOffset
public void setHorizontalOffset(int offset)
getVerticalOffset
public int getVerticalOffset()
setVerticalOffset
public void setVerticalOffset(int offset)
getWidth
public int getWidth()
setWidth
public void setWidth(int width)
setContentWidth
public void setContentWidth(int width)
getHeight
public int getHeight()
setHeight
public void setHeight(int height)
setOnItemClickListener
public void setOnItemClickListener(AdapterView.OnItemClickListener clickListener)
setOnItemSelectedListener
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener selectedListener)
setPromptView
public void setPromptView(View prompt)
postShow
public void postShow()
show
public void show()
dismiss
public void dismiss()
setOnDismissListener
public void setOnDismissListener(PopupWindow.OnDismissListener listener)
setInputMethodMode
public void setInputMethodMode(int mode)
getInputMethodMode
public int getInputMethodMode()
setSelection
public void setSelection(int position)
clearListSelection
public void clearListSelection()
isShowing
public boolean isShowing()
isInputMethodNotNeeded
public boolean isInputMethodNotNeeded()
performItemClick
public boolean performItemClick(int position)
getSelectedItem
public Object getSelectedItem()
getSelectedItemPosition
public int getSelectedItemPosition()
getSelectedItemId
public long getSelectedItemId()
getSelectedView
public View getSelectedView()
getListView
public ListView getListView()
onKeyDown
public boolean onKeyDown(int keyCode,
KeyEvent event)
onKeyUp
public boolean onKeyUp(int keyCode,
KeyEvent event)
onKeyPreIme
public boolean onKeyPreIme(int keyCode,
KeyEvent event)
Copyright © 2008-2012. All Rights Reserved.