简体   繁体   English

如何在活动开始时用最少的时间显示大图像?

[英]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.

相关问题 如何在活动中加载插页式广告并在其他活动中显示? - How can i load interstitial ad in activity and show is in another activity? 如何将此图片设置为Android活动 - How can I set this image to activity in Android 如何找出可在大量Android手机上安全使用的Java最低版本? - How can I find out the minimum version of Java that is safe to use across a large number of Android phones? 如何从适配器获取数据并在Android中的Activity中显示 - how can i get data from adapter and show in Activity in Android 如何在我的活动中实现“不再显示”功能? - How can i implement the “do not show again” functionality on my activity? 如何在片段的imageview中显示大量图像? - How I can manage to show large sum of images in imageview of fragment? 我如何才能使一个线程从多个运行中最大化(在等待队列中的最短时间)? - How can i make one thread out of several run for maximum time(minimum time in waiting queue)? 如何从另一个活动的不同回收视图开始创建新的回收视图 - How can I create new recycle views starting from a different recycle view on another activity 如何计算大量线程的响应时间和吞吐量 - How can I calculate response time and throughput for large no.of threads 如何将位图图像转移到另一个活动中? - How can I transfer bitmap image into another activity?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM