switch (attribute.inputType & EditorInfo.TYPE_MASK_CLASS) {
case EditorInfo.TYPE_CLASS_NUMBER:
case EditorInfo.TYPE_CLASS_DATETIME:
case EditorInfo.TYPE_CLASS_PHONE:
mCurKeyboard = mSymbolsKeyboard;
break;
case EditorInfo.TYPE_CLASS_TEXT:
mCurKeyboard = mQwertyKeyboard;
}
这是什么意思?
我的测试结果是:
attribute.inputType = 17
EditorInfo.TYPE_MASK_CLASS = 15
它切换到case EditorInfo.TYPE_CLASS_TEXT
哪个是= 1