Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ArrayList 中存储了一些位图,因为位图是非常昂贵的资源我想知道是否有一种有效的方法来释放所有位图,当我不再需要 ArrayList 或者只是在 ArrayList 上调用 clear 就足够了?
你必须调用你所持有的recycle()每一个。然后你可以打电话BitmapArrayListclear()
recycle()
Bitmap
ArrayList
clear()