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(android.content.Context context) |
PopupWindow(android.content.Context context,
android.util.AttributeSet attrs) |
PopupWindow(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
PopupWindow(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
PopupWindow(int width,
int height) |
PopupWindow(android.view.View contentView) |
PopupWindow(android.view.View contentView,
int width,
int height) |
PopupWindow(android.view.View contentView,
int width,
int height,
boolean focusable) |
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss() |
int |
getAnimationStyle() |
android.graphics.drawable.Drawable |
getBackground() |
android.view.View |
getContentView() |
int |
getHeight() |
int |
getInputMethodMode() |
int |
getMaxAvailableHeight(android.view.View anchor) |
int |
getMaxAvailableHeight(android.view.View anchor,
int yOffset) |
int |
getMaxAvailableHeight(android.view.View anchor,
int yOffset,
boolean ignoreBottomDecorations) |
int |
getSoftInputMode() |
int |
getWidth() |
int |
getWindowLayoutType() |
boolean |
isAboveAnchor() |
boolean |
isClippingEnabled() |
boolean |
isFocusable() |
boolean |
isLayoutInScreenEnabled() |
boolean |
isOutsideTouchable() |
boolean |
isShowing() |
boolean |
isSplitTouchEnabled() |
boolean |
isTouchable() |
void |
setAnimationStyle(int animationStyle) |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable background) |
void |
setClippingEnabled(boolean enabled) |
void |
setClipToScreenEnabled(boolean enabled) |
void |
setContentView(android.view.View contentView) |
void |
setFocusable(boolean focusable) |
void |
setHeight(int height) |
void |
setIgnoreCheekPress() |
void |
setInputMethodMode(int mode) |
void |
setLayoutInScreenEnabled(boolean enabled) |
void |
setLayoutInsetDecor(boolean enabled) |
void |
setOnDismissListener(PopupWindow.OnDismissListener onDismissListener) |
void |
setOutsideTouchable(boolean touchable) |
void |
setSoftInputMode(int mode) |
void |
setSplitTouchEnabled(boolean enabled) |
void |
setTouchable(boolean touchable) |
void |
setTouchInterceptor(android.view.View.OnTouchListener l) |
void |
setTouchModal(boolean touchModal) |
void |
setWidth(int width) |
void |
setWindowLayoutMode(int widthSpec,
int heightSpec) |
void |
setWindowLayoutType(int layoutType) |
void |
showAsDropDown(android.view.View anchor) |
void |
showAsDropDown(android.view.View anchor,
int xoff,
int yoff) |
void |
showAtLocation(android.os.IBinder token,
int gravity,
int x,
int y) |
void |
showAtLocation(android.view.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(android.view.View anchor,
int width,
int height) |
void |
update(android.view.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()
public PopupWindow(android.content.Context context)
public PopupWindow(android.content.Context context,
android.util.AttributeSet attrs)
public PopupWindow(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public PopupWindow(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public PopupWindow(int width,
int height)
public PopupWindow(android.view.View contentView)
public PopupWindow(android.view.View contentView,
int width,
int height)
public PopupWindow(android.view.View contentView,
int width,
int height,
boolean focusable)
public void dismiss()
public int getAnimationStyle()
public android.graphics.drawable.Drawable getBackground()
public android.view.View getContentView()
public int getHeight()
public int getInputMethodMode()
public int getMaxAvailableHeight(android.view.View anchor)
public int getMaxAvailableHeight(android.view.View anchor,
int yOffset)
public int getMaxAvailableHeight(android.view.View anchor,
int yOffset,
boolean ignoreBottomDecorations)
public int getSoftInputMode()
public int getWidth()
public int getWindowLayoutType()
public boolean isAboveAnchor()
public boolean isClippingEnabled()
public boolean isFocusable()
public boolean isLayoutInScreenEnabled()
public boolean isOutsideTouchable()
public boolean isShowing()
public boolean isSplitTouchEnabled()
public boolean isTouchable()
public void setAnimationStyle(int animationStyle)
public void setBackgroundDrawable(android.graphics.drawable.Drawable background)
public void setClippingEnabled(boolean enabled)
public void setClipToScreenEnabled(boolean enabled)
public void setContentView(android.view.View contentView)
public void setFocusable(boolean focusable)
public void setHeight(int height)
public void setIgnoreCheekPress()
public void setInputMethodMode(int mode)
public void setLayoutInScreenEnabled(boolean enabled)
public void setLayoutInsetDecor(boolean enabled)
public void setOnDismissListener(PopupWindow.OnDismissListener onDismissListener)
public void setOutsideTouchable(boolean touchable)
public void setSoftInputMode(int mode)
public void setSplitTouchEnabled(boolean enabled)
public void setTouchable(boolean touchable)
public void setTouchInterceptor(android.view.View.OnTouchListener l)
public void setTouchModal(boolean touchModal)
public void setWidth(int width)
public void setWindowLayoutMode(int widthSpec,
int heightSpec)
public void setWindowLayoutType(int layoutType)
public void showAsDropDown(android.view.View anchor)
public void showAsDropDown(android.view.View anchor,
int xoff,
int yoff)
public void showAtLocation(android.os.IBinder token,
int gravity,
int x,
int y)
public void showAtLocation(android.view.View parent,
int gravity,
int x,
int y)
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(android.view.View anchor,
int width,
int height)
public void update(android.view.View anchor,
int xoff,
int yoff,
int width,
int height)
Copyright © 2012-2013. All Rights Reserved.