GridView+BaseAdapter,上下滑动特别卡

dahui12344321 2011-01-13
各位,现在遇到了这样的问题。我用GridView+BaseAdapter实现了类似ListView上下滑动的效果,但是如果数据量增大的话,滑动起来特别卡。通过监控日志信息,出现了大量的GC,内容如下:
引用
01-13 16:41:25.118: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 223 objects / 14448 bytes in 36ms
01-13 16:41:25.178: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 20 objects / 1152 bytes in 35ms
01-13 16:41:25.228: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 12 objects / 568 bytes in 33ms
01-13 16:41:25.318: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 119 objects / 7336 bytes in 34ms
01-13 16:41:25.418: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 123 objects / 7472 bytes in 37ms
01-13 16:41:25.468: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 15 objects / 632 bytes in 34ms
01-13 16:41:25.558: DEBUG/dalvikvm(1524): GC_EXTERNAL_ALLOC freed 113 objects / 7128 bytes in 34ms

如何解决,大家有什么好的建议吗?
zhiweiofli 2011-02-24
预先进行数据的缓存
魏魏du 2011-08-17
怎么缓存??
Global site tag (gtag.js) - Google Analytics