public abstract class ConfirmPopup<V extends android.view.View> extends BasicPopup<android.view.View>
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
backgroundColor |
protected android.widget.TextView |
cancelButton |
protected java.lang.CharSequence |
cancelText |
protected int |
cancelTextColor |
protected int |
cancelTextSize |
protected boolean |
cancelVisible |
protected android.view.View |
centerView |
protected int |
contentLeftAndRightPadding |
protected int |
contentTopAndBottomPadding |
protected android.view.View |
footerView |
protected android.view.View |
headerView |
protected int |
pressedTextColor |
protected android.widget.TextView |
submitButton |
protected java.lang.CharSequence |
submitText |
protected int |
submitTextColor |
protected int |
submitTextSize |
protected java.lang.CharSequence |
titleText |
protected int |
titleTextColor |
protected int |
titleTextSize |
protected android.view.View |
titleView |
protected int |
topBackgroundColor |
protected int |
topHeight |
protected int |
topLineColor |
protected int |
topLineHeightPixels |
protected boolean |
topLineVisible |
protected int |
topPadding |
activity, MATCH_PARENT, screenHeightPixels, screenWidthPixels, WRAP_CONTENT| 构造器和说明 |
|---|
ConfirmPopup(android.app.Activity activity) |
| 限定符和类型 | 方法和说明 |
|---|---|
android.widget.TextView |
getCancelButton() |
android.widget.TextView |
getSubmitButton() |
android.view.View |
getTitleView() |
protected abstract V |
makeCenterView() |
protected android.view.View |
makeContentView()
创建弹窗的内容视图
|
protected android.view.View |
makeFooterView() |
protected android.view.View |
makeHeaderView() |
protected void |
onCancel() |
protected void |
onSubmit() |
void |
setBackgroundColor(int backgroundColor)
设置选择器主体背景颜色
|
void |
setCancelText(java.lang.CharSequence cancelText)
设置顶部标题栏取消按钮文字
|
void |
setCancelText(int textRes)
设置顶部标题栏取消按钮文字
|
void |
setCancelTextColor(int cancelTextColor)
设置顶部标题栏取消按钮文字颜色
|
void |
setCancelTextSize(int cancelTextSize)
设置顶部标题栏取消按钮文字大小(单位为sp)
|
void |
setCancelVisible(boolean cancelVisible)
设置顶部标题栏取消按钮是否显示
|
void |
setContentPadding(int leftAndRight,
int topAndBottom)
设置内容上下左右边距(单位为dp)
|
void |
setFooterView(android.view.View footerView) |
void |
setHeaderView(android.view.View headerView) |
void |
setPressedTextColor(int pressedTextColor)
设置按下时的文字颜色
|
void |
setSubmitText(java.lang.CharSequence submitText)
设置顶部标题栏确定按钮文字
|
void |
setSubmitText(int textRes)
设置顶部标题栏确定按钮文字
|
void |
setSubmitTextColor(int submitTextColor)
设置顶部标题栏确定按钮文字颜色
|
void |
setSubmitTextSize(int submitTextSize)
设置顶部标题栏确定按钮文字大小(单位为sp)
|
void |
setTitleText(java.lang.CharSequence titleText)
设置顶部标题栏标题文字
|
void |
setTitleText(int textRes)
设置顶部标题栏标题文字
|
void |
setTitleTextColor(int titleTextColor)
设置顶部标题栏标题文字颜色
|
void |
setTitleTextSize(int titleTextSize)
设置顶部标题栏标题文字大小(单位为sp)
|
void |
setTitleView(android.view.View titleView) |
void |
setTopBackgroundColor(int topBackgroundColor)
设置顶部标题栏背景颜色
|
void |
setTopHeight(int topHeight)
设置顶部标题栏高度(单位为dp)
|
void |
setTopLineColor(int topLineColor)
设置顶部标题栏下划线颜色
|
void |
setTopLineHeight(int topLineHeightPixels)
设置顶部标题栏下划线高度,单位为px
|
void |
setTopLineVisible(boolean topLineVisible)
设置顶部标题栏下划线是否显示
|
void |
setTopPadding(int topPadding)
设置顶部按钮左边及右边边距(单位为dp)
|
dismiss, dismissImmediately, getContentView, getContext, getRootView, getScreenHeightPixels, getScreenWidthPixels, getWindow, isShowing, onBackPress, onDismiss, onKey, setAnimationStyle, setCancelable, setCanceledOnTouchOutside, setContentView, setContentViewAfter, setContentViewBefore, setFillScreen, setFitsSystemWindows, setGravity, setHalfScreen, setHeight, setOnDismissListener, setOnKeyListener, setPrepared, setSize, setWidth, show, showAfterprotected boolean topLineVisible
protected int topLineColor
protected int topLineHeightPixels
protected int topBackgroundColor
protected int topHeight
protected int topPadding
protected int contentLeftAndRightPadding
protected int contentTopAndBottomPadding
protected boolean cancelVisible
protected java.lang.CharSequence cancelText
protected java.lang.CharSequence submitText
protected java.lang.CharSequence titleText
protected int cancelTextColor
protected int submitTextColor
protected int titleTextColor
protected int pressedTextColor
protected int cancelTextSize
protected int submitTextSize
protected int titleTextSize
protected int backgroundColor
protected android.widget.TextView cancelButton
protected android.widget.TextView submitButton
protected android.view.View titleView
protected android.view.View headerView
protected android.view.View centerView
protected android.view.View footerView
public void setTopLineColor(int topLineColor)
public void setTopLineHeight(int topLineHeightPixels)
public void setTopBackgroundColor(int topBackgroundColor)
public void setTopHeight(int topHeight)
public void setTopPadding(int topPadding)
public void setTopLineVisible(boolean topLineVisible)
public void setContentPadding(int leftAndRight,
int topAndBottom)
public void setCancelVisible(boolean cancelVisible)
public void setCancelText(java.lang.CharSequence cancelText)
public void setCancelText(@StringRes
int textRes)
public void setSubmitText(java.lang.CharSequence submitText)
public void setSubmitText(@StringRes
int textRes)
public void setTitleText(java.lang.CharSequence titleText)
public void setTitleText(@StringRes
int textRes)
public void setCancelTextColor(int cancelTextColor)
public void setSubmitTextColor(int submitTextColor)
public void setTitleTextColor(int titleTextColor)
public void setPressedTextColor(int pressedTextColor)
public void setCancelTextSize(int cancelTextSize)
public void setSubmitTextSize(int submitTextSize)
public void setTitleTextSize(int titleTextSize)
public void setBackgroundColor(int backgroundColor)
public void setTitleView(android.view.View titleView)
public android.view.View getTitleView()
public android.widget.TextView getCancelButton()
public android.widget.TextView getSubmitButton()
public void setHeaderView(android.view.View headerView)
public void setFooterView(android.view.View footerView)
protected final android.view.View makeContentView()
BasicPopupmakeContentView 在类中 BasicPopup<android.view.View>makeHeaderView(),
makeCenterView(),
makeFooterView()@Nullable protected android.view.View makeHeaderView()
@NonNull protected abstract V makeCenterView()
@Nullable protected android.view.View makeFooterView()
protected void onSubmit()
protected void onCancel()