今天准备讲讲在Android Framework中按位操作符的运用,讲之前大家最好再回顾一下,按位“与”(&)、按位“或”(|)、按位“非”(~)、按位“异或”(^)的定义
// VISIBILITY_MASK = VISIBLE + INVISIBLE + GONE
// VISIBILITY_MASK 称为掩位码
public static final int VISIBLE = 0x00000000;
public static final int INVISIBLE = 0x00000004;
public static final int GONE = 0x00000008;
static final int VISIBILITY_MASK = 0x0000000C;
private static final int NOT_FOCUSABLE = 0x00000000;
private static final <