当前位置: 首页>>代码示例>>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;未经允许,请勿转载。