zoukankan      html  css  js  c++  java
  • 安卓爬坑指南之沉浸式状态栏下PopupWindow、Dialog全屏显示

    PopupWindow 全屏显示

    pop.setClippingEnabled(false)
    

    Dialog沉浸式显示

    //设置全屏
            getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
    //设置dialog沉浸式效果
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
        dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    } else {
        dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION, WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
    }
    
  • 相关阅读:
    云图小助理
    ping包的checksum校验和
    ftp相关
    初始化字符串
    安全的域名解析
    10进制转62进制
    centos6一键安装WordPress
    CEF3编译
    一次性生产KEY
    linux系统问题排查
  • 原文地址:https://www.cnblogs.com/sishuiliuyun/p/15406522.html
Copyright © 2011-2022 走看看