Coder Social home page Coder Social logo

Comments (2)

RiceRichhonour avatar RiceRichhonour commented on May 21, 2024

因为项目中要用到夜间模式,所以我就找了大量的例子研究,

但是在application中设置全局夜间模式生效之后,然后就会重现这个bug,

不光博主的项目,网上有很多关于这个方案的demo和文章都没有提及这个问题,但是他们的demo都会出现此问题,只要含有webview。

不知道是不是真的有人把这个看起来简单了很多的方案应用于商业项目。

目前所看到的大多数app夜间模式,还在用定义两种theme,一个控件一个控件的,各种属性定义attr 的方式进行刷新。

from wanandroid.

iceCola7 avatar iceCola7 commented on May 21, 2024

不好意思了,回复的太晚了。。。这种夜间模式的切换暂时没有集成到商业项目中实践~

from wanandroid.

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.