本文整理汇总了Java中android.view.WindowManager.removeViewImmediate方法的典型用法代码示例。如果您正苦于以下问题:Java WindowManager.removeViewImmediate方法的具体用法?Java WindowManager.removeViewImmediate怎么用?Java WindowManager.removeViewImmediate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.view.WindowManager
的用法示例。
在下文中一共展示了WindowManager.removeViewImmediate方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: destroyPhotoViewer
import android.view.WindowManager; //导入方法依赖的package包/类
public void destroyPhotoViewer() {
if (parentActivity == null || windowView == null) {
return;
}
try {
if (windowView.getParent() != null) {
WindowManager wm = (WindowManager) parentActivity
.getSystemService(Context.WINDOW_SERVICE);
wm.removeViewImmediate(windowView);
}
windowView = null;
} catch (Exception e) {
e.printStackTrace();
}
parentActivity = null;
Instance = null;
}
示例2: destroy
import android.view.WindowManager; //导入方法依赖的package包/类
public void destroy() {
isVisible = false;
currentSticker = null;
if (parentActivity == null || windowView == null) {
return;
}
try {
if (windowView.getParent() != null) {
WindowManager wm = (WindowManager) parentActivity.getSystemService(Context.WINDOW_SERVICE);
wm.removeViewImmediate(windowView);
}
windowView = null;
} catch (Exception e) {
FileLog.e("tmessages", e);
}
Instance = null;
}
示例3: destroyPhotoViewer
import android.view.WindowManager; //导入方法依赖的package包/类
public void destroyPhotoViewer() {
if (parentActivity == null || windowView == null) {
return;
}
releasePlayer();
try {
if (windowView.getParent() != null) {
WindowManager wm = (WindowManager) parentActivity.getSystemService(Context.WINDOW_SERVICE);
wm.removeViewImmediate(windowView);
}
windowView = null;
} catch (Exception e) {
FileLog.e("tmessages", e);
}
if (captionEditText != null) {
captionEditText.onDestroy();
}
Instance = null;
}
示例4: destroyPhotoViewer
import android.view.WindowManager; //导入方法依赖的package包/类
public void destroyPhotoViewer() {
NotificationCenter.getInstance().removeObserver(this, NotificationCenter.messagesDeleted);
NotificationCenter.getInstance().removeObserver(this, NotificationCenter.didCreatedNewDeleteTask);
isVisible = false;
currentMessageObject = null;
if (parentActivity == null || windowView == null) {
return;
}
try {
if (windowView.getParent() != null) {
WindowManager wm = (WindowManager) parentActivity.getSystemService(Context.WINDOW_SERVICE);
wm.removeViewImmediate(windowView);
}
windowView = null;
} catch (Exception e) {
FileLog.e("tmessages", e);
}
Instance = null;
}
示例5: stop
import android.view.WindowManager; //导入方法依赖的package包/类
public void stop() {
WindowManager windowManager = (WindowManager) this.context.getSystemService("window");
if (this.shadeStatusBar.getParent() != null) {
windowManager.removeViewImmediate(this.shadeStatusBar);
}
removePanels();
this.inboxManager.removeListener(this);
this.lockScreenManager.removeListener(this);
this.settings.unregisterSettingChangeListener(this);
this.shadeNotificationController.stop();
this.overlayNotificationController.stop();
if (this.broadcastReceiver != null) {
this.context.unregisterReceiver(this.broadcastReceiver);
this.broadcastReceiver = null;
}
}
示例6: removeShadeStatusBar
import android.view.WindowManager; //导入方法依赖的package包/类
void removeShadeStatusBar() {
Log.d(TAG, "remove ShadeStatusBar()");
WindowManager windowManager = (WindowManager) this.context.getSystemService("window");
if (this.shadeStatusBar.getParent() != null) {
windowManager.removeViewImmediate(this.shadeStatusBar);
}
}
示例7: removePanels
import android.view.WindowManager; //导入方法依赖的package包/类
void removePanels() {
Log.d(TAG, "removePanels()");
WindowManager windowManager = (WindowManager) this.context.getSystemService("window");
if (this.shadeInboxBody.getParent() != null) {
windowManager.removeViewImmediate(this.shadeInboxBody);
}
if (this.shadeInboxHeader.getParent() != null) {
windowManager.removeViewImmediate(this.shadeInboxHeader);
}
}
示例8: destroy
import android.view.WindowManager; //导入方法依赖的package包/类
private void destroy() {
mState = DESTROYED;
if (mCountDownTimer != null) {
mCountDownTimer.cancel();
}
WindowManager windowManager = (WindowManager) mContext.getSystemService(WINDOW_SERVICE);
if (mMaskView != null) {
windowManager.removeViewImmediate(mMaskView);
}
windowManager.removeViewImmediate(mRootLayout);
}