Git Product home page Git Product logo

Comments (5)

zouxianbincc avatar zouxianbincc commented on June 4, 2024

我设置了android:fitsSystemWindows="true"

from androidpicker.

zouxianbincc avatar zouxianbincc commented on June 4, 2024

下载了原码,看了一下。原来这个弹窗并不是基于项目本身的视图。 而是新new 了一个dialog 获取的 window . 所以 在自己项目中如果设置了全透明主题时,或是沉浸式状态 菜单时,最 把原码下下来。在
Common 包下 Popup类中 init 方法里 ,对 contentLayout = new FrameLayout(context); 设置一下contentLayout.setFitsSystemWindows(true);问题就解决了

from androidpicker.

catroom avatar catroom commented on June 4, 2024

false//适配华为手机的虚拟按键

不要沉浸虚拟按键。一般人都找不到这个方法。贡献给这位兄弟了

from androidpicker.

liyujiang-gzu avatar liyujiang-gzu commented on June 4, 2024

华为手机绝大部分都是虚拟按键,可以沉浸顶部标题栏,但不要沉浸底部导航栏?

from androidpicker.

liyujiang-gzu avatar liyujiang-gzu commented on June 4, 2024

可以沉浸顶部标题栏:
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);//通知状态栏半透明
但不要沉浸底部导航栏:
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);//通知状态栏半透明

from androidpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.