public class PopupWindow extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PopupWindow.OnDismissListener |
| Modifier and Type | Field and Description |
|---|---|
static int |
INPUT_METHOD_FROM_FOCUSABLE |
static int |
INPUT_METHOD_NEEDED |
static int |
INPUT_METHOD_NOT_NEEDED |
| Constructor and Description |
|---|
PopupWindow() |
PopupWindow(Context context) |
PopupWindow(Context context,
AttributeSet attrs) |
PopupWindow(Context context,
AttributeSet attrs,
int defStyle) |
PopupWindow(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
PopupWindow(int width,
int height) |
PopupWindow(View contentView) |
PopupWindow(View contentView,
int width,
int height) |
PopupWindow(View contentView,
int width,
int height,
boolean focusable) |
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss() |
int |
getAnimationStyle() |
Drawable |
getBackground() |
View |
getContentView() |
int |
getHeight() |
int |
getInputMethodMode() |
int |
getMaxAvailableHeight(View anchor) |
int |
getMaxAvailableHeight(View anchor,
int yOffset) |
int |
getSoftInputMode() |
int |
getWidth() |
boolean |
isAboveAnchor() |
boolean |
isClippingEnabled() |
boolean |
isFocusable() |
boolean |
isOutsideTouchable() |
boolean |
isShowing() |
boolean |
isSplitTouchEnabled() |
boolean |
isTouchable() |
void |
setAnimationStyle(int animationStyle) |
void |
setBackgroundDrawable(Drawable background) |
void |
setClippingEnabled(boolean enabled) |
void |
setContentView(View contentView) |
void |
setFocusable(boolean focusable) |
void |
setHeight(int height) |
void |
setIgnoreCheekPress() |
void |
setInputMethodMode(int mode) |
void |
setOnDismissListener(PopupWindow.OnDismissListener onDismissListener) |
void |
setOutsideTouchable(boolean touchable) |
void |
setSoftInputMode(int mode) |
void |
setSplitTouchEnabled(boolean enabled) |
void |
setTouchable(boolean touchable) |
void |
setTouchInterceptor(View.OnTouchListener l) |
void |
setWidth(int width) |
void |
setWindowLayoutMode(int widthSpec,
int heightSpec) |
void |
showAsDropDown(View anchor) |
void |
showAsDropDown(View anchor,
int xoff,
int yoff) |
void |
showAtLocation(View parent,
int gravity,
int x,
int y) |
void |
update() |
void |
update(int width,
int height) |
void |
update(int x,
int y,
int width,
int height) |
void |
update(int x,
int y,
int width,
int height,
boolean force) |
void |
update(View anchor,
int width,
int height) |
void |
update(View anchor,
int xoff,
int yoff,
int width,
int height) |
public static final int INPUT_METHOD_FROM_FOCUSABLE
public static final int INPUT_METHOD_NEEDED
public static final int INPUT_METHOD_NOT_NEEDED
public PopupWindow(Context context)
public PopupWindow(Context context, AttributeSet attrs)
public PopupWindow(Context context, AttributeSet attrs, int defStyle)
public PopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
public PopupWindow()
public PopupWindow(View contentView)
public PopupWindow(int width,
int height)
public PopupWindow(View contentView, int width, int height)
public PopupWindow(View contentView, int width, int height, boolean focusable)
public Drawable getBackground()
public void setBackgroundDrawable(Drawable background)
public int getAnimationStyle()
public void setIgnoreCheekPress()
public void setAnimationStyle(int animationStyle)
public View getContentView()
public void setContentView(View contentView)
public void setTouchInterceptor(View.OnTouchListener l)
public boolean isFocusable()
public void setFocusable(boolean focusable)
public int getInputMethodMode()
public void setInputMethodMode(int mode)
public void setSoftInputMode(int mode)
public int getSoftInputMode()
public boolean isTouchable()
public void setTouchable(boolean touchable)
public boolean isOutsideTouchable()
public void setOutsideTouchable(boolean touchable)
public boolean isClippingEnabled()
public void setClippingEnabled(boolean enabled)
public boolean isSplitTouchEnabled()
public void setSplitTouchEnabled(boolean enabled)
public void setWindowLayoutMode(int widthSpec,
int heightSpec)
public int getHeight()
public void setHeight(int height)
public int getWidth()
public void setWidth(int width)
public boolean isShowing()
public void showAtLocation(View parent, int gravity, int x, int y)
public void showAsDropDown(View anchor)
public void showAsDropDown(View anchor, int xoff, int yoff)
public boolean isAboveAnchor()
public int getMaxAvailableHeight(View anchor)
public int getMaxAvailableHeight(View anchor, int yOffset)
public void dismiss()
public void setOnDismissListener(PopupWindow.OnDismissListener onDismissListener)
public void update()
public void update(int width,
int height)
public void update(int x,
int y,
int width,
int height)
public void update(int x,
int y,
int width,
int height,
boolean force)
public void update(View anchor, int width, int height)
public void update(View anchor, int xoff, int yoff, int width, int height)
Copyright © 2008-2013. All Rights Reserved.