小编use*_*144的帖子

如何将int转换为Integer

private static HashMap<Integer, Bitmap> mBitmapCache;         
mBitmapCache.put(R.drawable.bg1,object);                       
Run Code Online (Sandbox Code Playgroud)

R.drawable.bg1int...但我想转换成Integer因为Hashmap采用Integer...并且在几秒内绘制多个对象时,它会创建一个影响代码性能的整数对象运行时...

android

25
推荐指数
2
解决办法
10万
查看次数

标签 统计

android ×1