简体   繁体   中英

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). Imageviews are populated from a uri.

the imageviews are set this way :

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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