简体   繁体   English

主屏幕小部件上的ImageViews减慢主屏幕性能

[英]ImageViews on Homescreen Widget slow the Homescreen performance

I have a problem that I cannot find any documentation/ solutions on the web. 我有一个问题,我在网上找不到任何文档/解决方案。 I have an application with a home screen widget that displays a few imageviews, the number of imageviews is not final, it can be changed by the user (from inside the app) and by the app itself automatically. 我有一个带有主屏幕小部件的应用程序,它显示一些图像视图,图像视图的数量不是最终的,可以由用户(从应用程序内部)和应用程序本身自动更改。 When reaching over 6-8 imageviews the homescreen starts to get laggy ( dragging app icons, resizing widgets, moving between screens). 当达到6到8幅以上的图像视图时,主屏幕开始变得缓慢(拖动应用程序图标,调整窗口小部件大小,在屏幕之间移动)。 Imageviews are populated from a uri. Imageview是从uri填充的。

the imageviews are set this way : imageviews是这样设置的:

remoteViews.setImageViewUri(R.id.imageView1,uri1));

The widget layout is a regular linear layout with wighted imageviews 窗口小部件布局是规则的线性布局,具有紧凑的图像视图

Any information on this issue will be great 关于这个问题的任何信息都将是很棒的

Thanks 谢谢

通过调整图像大小,使其更小来解决此问题。

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

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