简体   繁体   English

切换到横向方向很慢

[英]Switching to landscape orientation is slow

This is getting called in onCreate(), how can I speed up orientation switching? 在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);
        }

Don't download the same resources every time the orientation changes. 方向每次更改时,请勿下载相同的资源。 Cache it!!! 缓存它!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM