Android 默认开启深色主题模式(暗夜模式)

/frameworks/base/core/res/res/values/config.xml

<!-- Control the default night mode to use when there is no other mode override set.

One of the following values (see UiModeManager.java):

0 - MODE_NIGHT_AUTO

1 - MODE_NIGHT_NO

2 - MODE_NIGHT_YES

tyd,lxd,def open night mode + UiModeManagerService.java

-->
<integer name="config_defaultNightMode">2</integer>

</resources>

相关推荐
alexhilton16 小时前
使用FunctionGemma进行设备端函数调用
android·kotlin·android jetpack
冬奇Lab19 小时前
InputManagerService:输入事件分发与ANR机制
android·源码阅读
日月云棠1 天前
各版本JDK对比:JDK 25 特性详解
java
张小潇1 天前
AOSP15 Input专题InputManager源码分析
android·操作系统
用户8307196840821 天前
Spring Boot 项目中日期处理的最佳实践
java·spring boot
JavaGuide1 天前
Claude Opus 4.6 真的用不起了!我换成了国产 M2.5,实测真香!!
java·spring·ai·claude code
IT探险家1 天前
Java 基本数据类型:8 种原始类型 + 数组 + 6 个新手必踩的坑
java
花花无缺1 天前
搞懂new 关键字(构造函数)和 .builder() 模式(建造者模式)创建对象
java
用户908324602731 天前
Spring Boot + MyBatis-Plus 多租户实战:从数据隔离到权限控制的完整方案
java·后端
桦说编程1 天前
实战分析 ConcurrentHashMap.computeIfAbsent 的锁冲突问题
java·后端·性能优化