0

这在 onCreate() 中被调用,如何加快方向切换?

private void setupChartView(int position){
            Quote myQuote = quotesAdapter.getItem(position);
            this.symbol = myQuote.getSymbol();

            String url = "http://chart.finance.yahoo.com/z?s=" + symbol + "&t=1d&q=l&l=on&z=l&p=s&a=v&p=s&lang=en-US&region=US";

            if(chartImageView != null)
                imageDownloader.download(url, chartImageView);

            if(chartImageViewLandscape != null)
                imageDownloader.download(url, chartImageViewLandscape);
        }
4

1 回答 1

2

不要在每次方向改变时下载相同的资源。缓存它!!!

于 2010-09-04T07:55:41.793 回答