本文整理匯總了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);
}