きょこみのーと

技術に関係ないほうのブログ

2012-12-16から1日間の記事一覧

AndroidでのBitmapをHashMapで持つ感じにしようとしたら警告がでた

ソース: Map<Integer,Bitmap> bitmapMap = new HashMap<Integer,Bitmap>(); 警告: Use new SparseArray(...) instead for better performance どうやら、HashMap使うよりSparseArray使ったほうがパフォーマンスいいよ?とのこと。 というわけで SparseArray<Bitmap> bitmapArray = new SparseArray<Bitmap>()</bitmap></bitmap></integer,bitmap></integer,bitmap>…