VERTICAL = 2; ClipDrawable() { this(null, null); } /** * @param orientation Bitwise-or
这就解释了看上去毫无意义的按位或运算符: n = n | 0; /* bitwise-OR of n and zero */ n 和 0 之间的按位或运算得到 n,但这里的目的是表示 n 保持整数值
== bitwise-and & bitwise-xor ^ bitwise-or | logical-and && logical-or || conditional ?