我知道我们可以将以下值设置为 android:configChanges
mcc
mnc
touchScreen
keyboardHidden
orientation,etc.
有时我们通过这个 |
运算符将它们连接起来,但我很困惑连接它们的含义是什么。会发生什么变化..?请解开我的困惑。
而且你怎么知道通过使用 |
这个运算符该选项会发生什么?
最佳答案
当你加入
mcc、mnc、触摸屏、键盘隐藏、方向等
by |
它实际上将所有参数一起考虑。
就像当mcc
更改或mnc
更改或屏幕方向
更改时, Activity 不应受到影响。或者键盘
弹出或弹出
无论您使用 |
添加哪个参数,都将被考虑。
mcc
The IMSI mobile country code (MCC) has changed — a SIM has been detected and updated the MCC.
mnc
The IMSI mobile network code (MNC) has changed — a SIM has been detected and updated the MNC.
touchscreen
The touchscreen has changed. (This should never normally happen.)
关于android:configChanges 选项 -Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13116603/