android_waterfall
android_waterfall copied to clipboard
4.0及以上机器内存溢出明显
上下滑动的时候还是有内存溢出
我觉的还是得用不同图片试试,只是重复几张图片的话可能不容出现oom,相同的图片也许只占一块内存 在 2012-12-6 上午11:14,"shean" [email protected]写道:
上下滑动的时候还是有内存溢出
— Reply to this email directly or view it on GitHubhttps://github.com/dodola/android_waterfall/issues/8.
特别是SDK4.0以上的机器,特别容易崩溃,4.0以下的不崩溃,但是会卡主
查了下,应该是AsyncTask使用过多,但是不知道线程池能不能解决这个问题,本人没有用过线程池,希望楼主能给个用线程池的方法
4.0的机子图片会变得很窄。中间空出一大块
感觉这个回收算法很是有问题啊,经常会出现一只loading的图片,如果不滑动会一直。。
if (proBar.getVisibility() == View.VISIBLE) {} 这个为什么要加?