这是在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®ion=US";
if(chartImageView != null)
imageDownloader.download(url, chartImageView);
if(chartImageViewLandscape != null)
imageDownloader.download(url, chartImageViewLandscape);
}
答案 0 :(得分:2)
每次方向更改时都不要下载相同的资源。缓存它!!!