Android 反射资源工具 Reflection Util
发布时间
阅读量:
阅读量
38. Android 反射资源工具ReflectionUtil
- Android 反射资源处理工具 ReflectionUtil
- 相关代码实现
- 应用方式说明
工具代码
反射工具类
public class ReflectionUtil {
public enum ResourcesType {
styleable,
style,
string,
mipmap,
menu,
layout,
integer,
id,
drawable,
dimen,
color,
bool,
attr,
anim
}
/** * 根据名字,反射取得资源
* * @param context context
* @param name resources name
* @param type enum of ResourcesType
* @return resources id
全部评论 (0)
还没有任何评论哟~
