bool isValidResourceType(const String8& type)
{
return type == "anim" || type == "animator" || type == "interpolator"
|| type == "transition"
|| type == "drawable" || type == "layout"
|| type == "values" || type == "xml" || type == "raw"
|| type == "color" || type == "menu" || type == "mipmap";
}
isValidResourceType
本文详细解析了boolisValidResourceType(constString8&type)函数,该函数用于验证Android资源类型的合法性,包括动画、动画器、插值器等20种资源类型。
1415

被折叠的 条评论
为什么被折叠?



