Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个 Java 项目中发现了一个新符号,想知道它是什么意思?
systemUiVisibility & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
~在这种情况下是什么意思?
~
一元按位补码运算符 "~"反转位模式;它可以应用于任何整数类型,使每个"0"a"1"和每个"1"a "0"。
"~"
"0"
"1"
例如,一个字节包含 8 位;将此运算符应用于位模式为 的值"00000000"会将其模式更改为"11111111".
"00000000"
"11111111"
更多信息在这里和这里。