本文整理了Java中android.widget.PopupWindow.dismiss()
方法的一些代码示例,展示了PopupWindow.dismiss()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PopupWindow.dismiss()
方法的具体详情如下:
包路径:android.widget.PopupWindow
类名称:PopupWindow
方法名:dismiss
暂无
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void destroyTipView() {
if (this.mRecordWindow != null) {
this.mRecordWindow.dismiss();
this.mRecordWindow = null;
this.mStateIV = null;
this.mStateTV = null;
this.mTimerTV = null;
}
}
代码示例来源:origin: ZieIony/Carbon
public void dismissImmediate() {
super.dismiss();
}
代码示例来源:origin: ZieIony/Carbon
public void dismissImmediate() {
super.dismiss();
}
代码示例来源:origin: ZieIony/Carbon
public void dismissImmediate() {
super.dismiss();
}
代码示例来源:origin: ZieIony/Carbon
public void dismissImmediate() {
super.dismiss();
}
代码示例来源:origin: ZieIony/Carbon
public void dismissImmediate() {
super.dismiss();
}
代码示例来源:origin: seven332/EhViewer
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
mPopup.dismiss();
}
代码示例来源:origin: Bearded-Hen/Android-Bootstrap
@Override
public void onClick(View v) {
dropdownWindow.dismiss();
if (onDropDownItemClickListener != null) {
onDropDownItemClickListener.onItemClick(dropdownView, v, v.getId());
}
}
});
代码示例来源:origin: facebook/facebook-android-sdk
/**
* Dismiss the tool tip
*/
public void dismiss() {
unregisterObserver();
if (mPopupWindow != null) {
mPopupWindow.dismiss();
}
}
代码示例来源:origin: arcadefire/nice-spinner
public void dismissDropDown() {
if (!isArrowHidden) {
animateArrow(false);
}
popupWindow.dismiss();
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
public void onClick(View v) {
int index = (int) v.getTag();
changeUrl(index, getCurrentPositionWhenPlaying());
clarity.setText(jzDataSource.getCurrentKey().toString());
for (int j = 0; j < layout.getChildCount(); j++) {//设置点击之后的颜色
if (j == jzDataSource.currentUrlIndex) {
((TextView) layout.getChildAt(j)).setTextColor(Color.parseColor("#fff85959"));
} else {
((TextView) layout.getChildAt(j)).setTextColor(Color.parseColor("#ffffff"));
}
}
if (clarityPopWindow != null) {
clarityPopWindow.dismiss();
}
}
};
代码示例来源:origin: ZieIony/Carbon
@Override
public void dismiss() {
View anchor = context.getWindow().getDecorView().getRootView();
anchor.getViewTreeObserver().removeOnPreDrawListener(listener);
super.dismiss();
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
@Override
public void onCompletion() {
super.onCompletion();
cancelDismissControlViewTimer();
if (clarityPopWindow != null) {
clarityPopWindow.dismiss();
}
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
public void dissmissControlView() {
if (currentState != CURRENT_STATE_NORMAL
&& currentState != CURRENT_STATE_ERROR
&& currentState != CURRENT_STATE_AUTO_COMPLETE) {
post(() -> {
bottomContainer.setVisibility(View.INVISIBLE);
topContainer.setVisibility(View.INVISIBLE);
startButton.setVisibility(View.INVISIBLE);
if (clarityPopWindow != null) {
clarityPopWindow.dismiss();
}
if (currentScreen != SCREEN_WINDOW_TINY) {
bottomProgressBar.setVisibility(View.VISIBLE);
}
});
}
}
代码示例来源:origin: pili-engineering/PLDroidPlayer
@Override
public void hide() {
if (mShowing) {
if (mAnchor != null) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
//mAnchor.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
}
}
try {
mHandler.removeMessages(SHOW_PROGRESS);
if (mFromXml)
setVisibility(View.GONE);
else
mWindow.dismiss();
} catch (IllegalArgumentException ex) {
Log.d(TAG, "MediaController already removed");
}
mShowing = false;
if (mHiddenListener != null)
mHiddenListener.onHidden();
}
}
代码示例来源:origin: redsolution/xabber-android
/**
* Dismiss the popup
*/
@Override
public void dismiss() {
super.dismiss();
EmojiconRecentsManager
.getInstance(mContext).saveRecents();
}
代码示例来源:origin: HotBitmapGG/bilibili-android-client
@SuppressLint("InlinedApi")
public void hide() {
if (mAnchor == null) {
return;
}
if (mShowing) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
mAnchor.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
}
try {
mHandler.removeMessages(SHOW_PROGRESS);
if (mFromXml) {
setVisibility(View.GONE);
} else {
mWindow.dismiss();
}
} catch (IllegalArgumentException ex) {
LogUtil.all("MediaController already removed");
}
mShowing = false;
if (mHiddenListener != null) {
mHiddenListener.onHidden();
}
}
}
代码示例来源:origin: pili-engineering/PLDroidPlayer
@Override
protected void onPause() {
super.onPause();
mMediaController.getWindow().dismiss();
mVideoView.pause();
}
代码示例来源:origin: GitLqr/LQRWeChat
private void showPopupMenu() {
if (mView == null) {
mView = new FrameLayout(this);
mView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
mView.setBackgroundColor(UIUtils.getColor(R.color.white));
TextView tv = new TextView(this);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, UIUtils.dip2Px(45));
tv.setLayoutParams(params);
tv.setGravity(Gravity.LEFT | Gravity.CENTER_VERTICAL);
tv.setPadding(UIUtils.dip2Px(20), 0, 0, 0);
tv.setTextColor(UIUtils.getColor(R.color.gray0));
tv.setTextSize(14);
tv.setText(UIUtils.getString(R.string.select_qr_code_from_ablum));
mView.addView(tv);
tv.setOnClickListener(v -> {
mPopupWindow.dismiss();
Intent intent = new Intent(ScanActivity.this, ImageGridActivity.class);
startActivityForResult(intent, IMAGE_PICKER);
});
}
mPopupWindow = PopupWindowUtils.getPopupWindowAtLocation(mView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, getWindow().getDecorView().getRootView(), Gravity.BOTTOM, 0, 0);
mPopupWindow.setOnDismissListener(() -> PopupWindowUtils.makeWindowLight(ScanActivity.this));
PopupWindowUtils.makeWindowDark(this);
}
代码示例来源:origin: stackoverflow.com
} else {
isClicked = true;
popUpWindow.dismiss();
内容来源于网络,如有侵权,请联系作者删除!