我得到“ALPHA_THRESHOLD 无法解析或不是 ViewConfiguration 的字段”,我的代码如下
// If the view has 0 alpha, we set it to be invisible so as to prevent
// it from accepting touches
if (alpha < ViewConfiguration.ALPHA_THRESHOLD) {
v.setVisibility(INVISIBLE);
} else if (v.getVisibility() != VISIBLE) {
v.setVisibility(VISIBLE);
}