當前位置: 首頁>>代碼示例>>Java>>正文


Java WindowManager.removeViewImmediate方法代碼示例

本文整理匯總了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;
}
 
開發者ID:chengzichen,項目名稱:KrGallery,代碼行數:18,代碼來源:PhotoViewer.java

示例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;
}
 
開發者ID:MLNO,項目名稱:airgram,代碼行數:18,代碼來源:StickerPreviewViewer.java

示例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;
}
 
開發者ID:MLNO,項目名稱:airgram,代碼行數:20,代碼來源:PhotoViewer.java

示例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;
}
 
開發者ID:MLNO,項目名稱:airgram,代碼行數:20,代碼來源:SecretPhotoViewer.java

示例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;
    }
}
 
開發者ID:bunnyblue,項目名稱:NoticeDog,代碼行數:17,代碼來源:ShadeViewManager.java

示例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);
    }
}
 
開發者ID:bunnyblue,項目名稱:NoticeDog,代碼行數:8,代碼來源:ShadeViewManager.java

示例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);
    }
}
 
開發者ID:bunnyblue,項目名稱:NoticeDog,代碼行數:11,代碼來源:ShadeViewManager.java

示例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);
    }
 
開發者ID:316boss,項目名稱:TopNotification,代碼行數:16,代碼來源:TopNotification.java


注:本文中的android.view.WindowManager.removeViewImmediate方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。