public class PopWindow
extends android.widget.PopupWindow
| Constructor and Description |
|---|
PopWindow(android.content.Context context,
int layoutId) |
PopWindow(android.content.Context context,
int layoutId,
int width,
int height) |
PopWindow(android.view.View contentView) |
PopWindow(android.view.View contentView,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
static void |
dismissPopWindow(PopWindow popWindow)
隐藏PopWindow
|
protected <T extends android.view.View> |
findView(int resId) |
android.view.View |
findViewById(int resId) |
android.content.Context |
getContext() |
void |
measurePopWindowSize()
计算popwindow的尺寸
|
void |
onClick(android.view.View v)
点击显示或者隐藏弹窗
|
void |
onClick(android.view.View v,
int xoff,
int yoff)
点击显示或者隐藏弹窗
|
void |
onClickUp(android.view.View v)
点击显示或者隐藏弹窗(以v的中心位置为开始位置)
|
void |
onClickUp2(android.view.View v)
点击显示或者隐藏弹窗[显示在v上方(以v的左边距为开始位置)]
|
void |
showUp(android.view.View v)
设置显示在v上方(以v的中心位置为开始位置)
|
void |
showUp2(android.view.View v)
设置显示在v上方(以v的左边距为开始位置)
|
void |
updatePopWindowHeight(android.widget.ListView listView)
计算popwindow的真实高度
|
dismiss, getAnimationStyle, getBackground, getContentView, getElevation, getEnterTransition, getExitTransition, getHeight, getInputMethodMode, getMaxAvailableHeight, getMaxAvailableHeight, getMaxAvailableHeight, getOverlapAnchor, getSoftInputMode, getWidth, getWindowLayoutType, isAboveAnchor, isAttachedInDecor, isClippingEnabled, isFocusable, isOutsideTouchable, isShowing, isSplitTouchEnabled, isTouchable, setAnimationStyle, setAttachedInDecor, setBackgroundDrawable, setClippingEnabled, setContentView, setElevation, setEnterTransition, setExitTransition, setFocusable, setHeight, setIgnoreCheekPress, setInputMethodMode, setOnDismissListener, setOutsideTouchable, setOverlapAnchor, setSoftInputMode, setSplitTouchEnabled, setTouchable, setTouchInterceptor, setWidth, setWindowLayoutMode, setWindowLayoutType, showAsDropDown, showAsDropDown, showAsDropDown, showAtLocation, update, update, update, update, update, updatepublic PopWindow(android.view.View contentView)
contentView - 布局控件public PopWindow(android.content.Context context,
int layoutId)
context - layoutId - 布局资源idpublic PopWindow(android.view.View contentView,
int width,
int height)
contentView - width - 宽height - 高public PopWindow(android.content.Context context,
int layoutId,
int width,
int height)
context - layoutId - 布局资源idwidth - 宽height - 高public void measurePopWindowSize()
public void onClick(android.view.View v)
v - 点击显示弹窗的控件public void onClickUp2(android.view.View v)
v - 点击显示弹窗的控件public void onClickUp(android.view.View v)
v - 点击显示弹窗的控件public void onClick(android.view.View v,
int xoff,
int yoff)
v - 点击显示弹窗的控件xoff - x轴偏移量yoff - y轴偏移量public android.view.View findViewById(int resId)
protected <T extends android.view.View> T findView(int resId)
public android.content.Context getContext()
public static void dismissPopWindow(PopWindow popWindow)
popWindow - public void updatePopWindowHeight(android.widget.ListView listView)
listView - public void showUp(android.view.View v)
v - public void showUp2(android.view.View v)
v -