public abstract class QMUIBasePopup
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
QMUIBasePopup.RootView |
| 限定符和类型 | 字段和说明 |
|---|---|
protected android.graphics.drawable.Drawable |
mBackground |
protected android.content.Context |
mContext |
protected android.view.View |
mRootView |
protected android.graphics.Point |
mScreenSize |
protected android.widget.PopupWindow |
mWindow |
protected int |
mWindowHeight |
protected android.view.WindowManager |
mWindowManager |
protected int |
mWindowWidth |
| 构造器和说明 |
|---|
QMUIBasePopup(android.content.Context context)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dimBehind(float dim) |
void |
dismiss() |
android.view.View |
getDecorView() |
boolean |
isShowing() |
protected int |
makeHeightMeasureSpec() |
protected int |
makeWidthMeasureSpec() |
protected void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
protected void |
onDismiss()
On dismiss
|
protected abstract android.graphics.Point |
onShowBegin(android.view.View parent,
android.view.View attachedView) |
protected void |
onShowConfig() |
protected void |
onShowEnd() |
protected abstract void |
onWindowSizeChange() |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable background)
Set background drawable.
|
void |
setContentView(int layoutResID)
Set content view.
|
void |
setContentView(android.view.View root)
Set content view.
|
void |
setNeedCacheSize(boolean needCacheSize) |
void |
setOnDismissListener(android.widget.PopupWindow.OnDismissListener listener) |
void |
show(android.view.View view) |
void |
show(android.view.View parent,
android.view.View anchorView) |
protected android.content.Context mContext
protected android.widget.PopupWindow mWindow
protected android.view.View mRootView
protected android.graphics.drawable.Drawable mBackground
protected android.view.WindowManager mWindowManager
protected android.graphics.Point mScreenSize
protected int mWindowHeight
protected int mWindowWidth
public QMUIBasePopup(android.content.Context context)
context - Contextprotected void onDismiss()
public android.view.View getDecorView()
public void dimBehind(float dim)
public final void show(android.view.View view)
public final void show(android.view.View parent,
android.view.View anchorView)
protected void onShowConfig()
protected abstract android.graphics.Point onShowBegin(android.view.View parent,
android.view.View attachedView)
protected void onShowEnd()
public boolean isShowing()
protected int makeWidthMeasureSpec()
protected int makeHeightMeasureSpec()
public void setBackgroundDrawable(android.graphics.drawable.Drawable background)
background - Background drawablepublic void setContentView(android.view.View root)
root - Root viewprotected abstract void onWindowSizeChange()
public void setContentView(int layoutResID)
layoutResID - Resource idpublic void setOnDismissListener(android.widget.PopupWindow.OnDismissListener listener)
public void dismiss()
protected void onConfigurationChanged(android.content.res.Configuration newConfig)
public void setNeedCacheSize(boolean needCacheSize)