[英]How can i show large image in the starting of activity with minimum time?
In my wallpaper android app I have first activity in which user selects any one image and go to the next activity, and in second activity I show preview of image. 在我的墙纸android应用程序中,我具有第一个活动,其中用户选择任何一个图像并转到下一个活动,而在第二个活动中,我显示图像的预览。 It is loading and taking long time.
它正在加载并且需要很长时间。 How can I reduce the loading time?
如何减少加载时间? on the same network obviously.
在同一网络上。 how can I preload this image?
如何预加载该图像? I used Glide as well as Picasso no difference in loading time.
我使用Glide和Picasso的加载时间没有区别。
Simple use cases with Glide's generated API will look something like this: ImageView imageView = (ImageView) findViewById(R.id.my_image_view); GlideApp.with(this).load("IMAGE URL").into(imageView);
Glide生成的API的简单用例如下所示:
ImageView imageView = (ImageView) findViewById(R.id.my_image_view); GlideApp.with(this).load("IMAGE URL").into(imageView);
ImageView imageView = (ImageView) findViewById(R.id.my_image_view); GlideApp.with(this).load("IMAGE URL").into(imageView);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.